diff --git a/vNext/src/BetterModules.Core/DataAccess/DataContext/SessionExtensions.cs b/vNext/src/BetterModules.Core/DataAccess/DataContext/SessionExtensions.cs index 5884562..447ff34 100644 --- a/vNext/src/BetterModules.Core/DataAccess/DataContext/SessionExtensions.cs +++ b/vNext/src/BetterModules.Core/DataAccess/DataContext/SessionExtensions.cs @@ -37,7 +37,7 @@ public static Boolean IsDirtyEntity(this ISession session, Object entity) } Object[] currentState = persister.GetPropertyValues(entity, sessionImpl.EntityMode); - Int32[] dirtyProps = oldState.Select((o, i) => ValuesAreEqual(oldState[i], currentState[i]) ? -1 : i).Where(x => x >= 0).ToArray(); + Int32[] dirtyProps = oldState.Select((o, i) => ValuesEqual(oldState[i], currentState[i]) ? -1 : i).Where(x => x >= 0).ToArray(); return (dirtyProps != null && dirtyProps.Length > 0); } @@ -48,7 +48,7 @@ public static Boolean IsDirtyEntity(this ISession session, Object entity) /// The old value. /// The current value. /// true, if values are equal, else false - private static bool ValuesAreEqual(object oldValue, object currentValue) + private static bool ValuesEqual(object oldValue, object currentValue) { // If property is not loaded, it has no changes if (!NHibernateUtil.IsInitialized(oldValue)) diff --git a/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/EventListeners/EventListenerHelperTests.cs b/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/EventListeners/EventListenerHelperTests.cs index 0f2af8c..bebfb0b 100644 --- a/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/EventListeners/EventListenerHelperTests.cs +++ b/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/EventListeners/EventListenerHelperTests.cs @@ -5,15 +5,14 @@ using BetterModules.Sample.Module.Models; using Moq; +using Xunit; -using NUnit.Framework; namespace BetterModules.Core.Tests.DataAccess.DataContext.EventListeners { - [TestFixture] - public class EventListenerHelperTests : TestBase + public class EventListenerHelperTests { - [Test] + [Fact] public void Should_Update_Creation_Fields_Correctly() { var principalProvider = new Mock(); @@ -25,13 +24,13 @@ public void Should_Update_Creation_Fields_Correctly() EnsureDeletionPropertiesUntouched(entity); - Assert.IsTrue(entity.CreatedOn != DateTime.MinValue); - Assert.IsTrue(entity.ModifiedOn != DateTime.MinValue); - Assert.AreEqual(entity.CreatedByUser, "TestPrincipal"); - Assert.AreEqual(entity.ModifiedByUser, "TestPrincipal"); + Assert.True(entity.CreatedOn != DateTime.MinValue); + Assert.True(entity.ModifiedOn != DateTime.MinValue); + Assert.Equal(entity.CreatedByUser, "TestPrincipal"); + Assert.Equal(entity.ModifiedByUser, "TestPrincipal"); } - [Test] + [Fact] public void Should_Update_Modification_Fields_Correctly() { var principalProvider = new Mock(); @@ -44,11 +43,11 @@ public void Should_Update_Modification_Fields_Correctly() EnsureDeletionPropertiesUntouched(entity); EnsureCreationPropertiesUntouched(entity); - Assert.IsTrue(entity.ModifiedOn != DateTime.MinValue); - Assert.AreEqual(entity.ModifiedByUser, "TestPrincipal"); + Assert.True(entity.ModifiedOn != DateTime.MinValue); + Assert.Equal(entity.ModifiedByUser, "TestPrincipal"); } - [Test] + [Fact] public void Should_Update_Deletion_Fields_Correctly() { var principalProvider = new Mock(); @@ -61,28 +60,28 @@ public void Should_Update_Deletion_Fields_Correctly() EnsureCreationPropertiesUntouched(entity); EnsureModificationPropertiesUntouched(entity); - Assert.IsTrue(entity.IsDeleted); - Assert.IsTrue(entity.DeletedOn != DateTime.MinValue); - Assert.AreEqual(entity.DeletedByUser, "TestPrincipal"); + Assert.True(entity.IsDeleted); + Assert.True(entity.DeletedOn != DateTime.MinValue); + Assert.Equal(entity.DeletedByUser, "TestPrincipal"); } private void EnsureCreationPropertiesUntouched(TestItemModel entity) { - Assert.AreEqual(entity.CreatedOn, DateTime.MinValue); - Assert.IsNull(entity.CreatedByUser); + Assert.Equal(entity.CreatedOn, DateTime.MinValue); + Assert.Null(entity.CreatedByUser); } private void EnsureDeletionPropertiesUntouched(TestItemModel entity) { - Assert.IsNull(entity.DeletedByUser); - Assert.IsNull(entity.DeletedOn); - Assert.IsFalse(entity.IsDeleted); + Assert.Null(entity.DeletedByUser); + Assert.Null(entity.DeletedOn); + Assert.False(entity.IsDeleted); } private void EnsureModificationPropertiesUntouched(TestItemModel entity) { - Assert.AreEqual(entity.ModifiedOn, DateTime.MinValue); - Assert.IsNull(entity.ModifiedByUser); + Assert.Equal(entity.ModifiedOn, DateTime.MinValue); + Assert.Null(entity.ModifiedByUser); } private TestItemModel CreateEntity() diff --git a/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/Fetching/EagerFetchTests.cs b/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/Fetching/EagerFetchTests.cs index ff5920d..9e501c3 100644 --- a/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/Fetching/EagerFetchTests.cs +++ b/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/Fetching/EagerFetchTests.cs @@ -1,182 +1,183 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Expressions; - -using BetterModules.Core.DataAccess.DataContext.Fetching; -using BetterModules.Core.Tests.TestHelpers; - -using Moq; - -using NUnit.Framework; - -namespace BetterModules.Core.Tests.DataAccess.DataContext.Fetching -{ - [TestFixture] - public class EagerFetchTests : TestBase - { - private static IQueryable originalQuery = new List - { - new TestModel {Name = "Test1"}, - new TestModel {Name = "Test2"}, - }.AsQueryable(); - - [Test] - public void Should_Call_Fetch_Successfully() - { - using (var fakeProvider = new ContextScopeProviderHelper()) - { - var provider = GetProviderMock(); - fakeProvider.RegisterFakeServiceInstance(provider, typeof(IFetchingProvider)); - - var result = originalQuery.Fetch(s => s.Parent); - - Assert.IsNotNull(result); - Assert.AreEqual(result.Count(), 1); - Assert.IsTrue(result.Any(r => r.Name == "Fetch_Result")); - } - } +//using System; +//using System.Collections.Generic; +//using System.Linq; +//using System.Linq.Expressions; + +//using BetterModules.Core.DataAccess.DataContext.Fetching; +//using BetterModules.Core.Tests.TestHelpers; + +//using Moq; + +//using NUnit.Framework; +//using Xunit; + +//namespace BetterModules.Core.Tests.DataAccess.DataContext.Fetching +//{ +// [TestFixture] +// public class EagerFetchTests : TestBase +// { +// private static IQueryable originalQuery = new List +// { +// new TestModel {Name = "Test1"}, +// new TestModel {Name = "Test2"}, +// }.AsQueryable(); + +// [Test] +// public void Should_Call_Fetch_Successfully() +// { +// using (var fakeProvider = new ContextScopeProviderHelper()) +// { +// var provider = GetProviderMock(); +// fakeProvider.RegisterFakeServiceInstance(provider, typeof(IFetchingProvider)); + +// var result = originalQuery.Fetch(s => s.Parent); + +// Assert.IsNotNull(result); +// Assert.Equal(result.Count(), 1); +// Assert.IsTrue(result.Any(r => r.Name == "Fetch_Result")); +// } +// } - [Test] - public void Should_Call_FetchMany_Successfully() - { - using (var fakeProvider = new ContextScopeProviderHelper()) - { - var provider = GetProviderMock(); - fakeProvider.RegisterFakeServiceInstance(provider, typeof(IFetchingProvider)); - - var result = originalQuery.FetchMany(s => s.Children); - - Assert.IsNotNull(result); - Assert.AreEqual(result.Count(), 1); - Assert.IsTrue(result.Any(r => r.Name == "FetchMany_Result")); - } - } +// [Test] +// public void Should_Call_FetchMany_Successfully() +// { +// using (var fakeProvider = new ContextScopeProviderHelper()) +// { +// var provider = GetProviderMock(); +// fakeProvider.RegisterFakeServiceInstance(provider, typeof(IFetchingProvider)); + +// var result = originalQuery.FetchMany(s => s.Children); + +// Assert.IsNotNull(result); +// Assert.Equal(result.Count(), 1); +// Assert.IsTrue(result.Any(r => r.Name == "FetchMany_Result")); +// } +// } - [Test] - public void Should_Call_ThenFetch_Successfully() - { - using (var fakeProvider = new ContextScopeProviderHelper()) - { - var provider = GetProviderMock(); - fakeProvider.RegisterFakeServiceInstance(provider, typeof(IFetchingProvider)); - - var result = originalQuery.Fetch(s => s.Parent).ThenFetch(s => s.Parent); - - Assert.IsNotNull(result); - Assert.AreEqual(result.Count(), 1); - Assert.IsTrue(result.Any(r => r.Name == "ThenFetch_Result")); - } - } +// [Test] +// public void Should_Call_ThenFetch_Successfully() +// { +// using (var fakeProvider = new ContextScopeProviderHelper()) +// { +// var provider = GetProviderMock(); +// fakeProvider.RegisterFakeServiceInstance(provider, typeof(IFetchingProvider)); + +// var result = originalQuery.Fetch(s => s.Parent).ThenFetch(s => s.Parent); + +// Assert.IsNotNull(result); +// Assert.Equal(result.Count(), 1); +// Assert.IsTrue(result.Any(r => r.Name == "ThenFetch_Result")); +// } +// } - [Test] - public void Should_Call_ThenFetchMany_Successfully() - { - using (var fakeProvider = new ContextScopeProviderHelper()) - { - var provider = GetProviderMock(); - fakeProvider.RegisterFakeServiceInstance(provider, typeof(IFetchingProvider)); - - var result = originalQuery.FetchMany(s => s.Children).ThenFetchMany(s => s.Children); - - Assert.IsNotNull(result); - Assert.AreEqual(result.Count(), 1); - Assert.IsTrue(result.Any(r => r.Name == "ThenFetchMany_Result")); - } - } - - private IFetchingProvider GetProviderMock() - { - var provider = new Mock(); - provider - .Setup(p => p.Fetch(It.IsAny>(), It.IsAny>>())) - .Returns, Expression>>((query, expression) => - { - Assert.AreEqual(query, originalQuery); - - var result = new List {new TestModel {Name = "Fetch_Result"}}.AsQueryable(); - return new FetchRequestTest(result); - }); +// [Test] +// public void Should_Call_ThenFetchMany_Successfully() +// { +// using (var fakeProvider = new ContextScopeProviderHelper()) +// { +// var provider = GetProviderMock(); +// fakeProvider.RegisterFakeServiceInstance(provider, typeof(IFetchingProvider)); + +// var result = originalQuery.FetchMany(s => s.Children).ThenFetchMany(s => s.Children); + +// Assert.IsNotNull(result); +// Assert.Equal(result.Count(), 1); +// Assert.IsTrue(result.Any(r => r.Name == "ThenFetchMany_Result")); +// } +// } + +// private IFetchingProvider GetProviderMock() +// { +// var provider = new Mock(); +// provider +// .Setup(p => p.Fetch(It.IsAny>(), It.IsAny>>())) +// .Returns, Expression>>((query, expression) => +// { +// Assert.Equal(query, originalQuery); + +// var result = new List {new TestModel {Name = "Fetch_Result"}}.AsQueryable(); +// return new FetchRequestTest(result); +// }); - provider - .Setup(p => p.ThenFetch(It.IsAny>(), It.IsAny>>())) - .Returns, Expression>>((query, expression) => - { - Assert.IsNotNull(query); - Assert.AreEqual(query.Count(), 1); - Assert.IsTrue(query.Any(r => r.Name == "Fetch_Result")); - - var result = new List {new TestModel {Name = "ThenFetch_Result"}}.AsQueryable(); - return new FetchRequestTest(result); - }); +// provider +// .Setup(p => p.ThenFetch(It.IsAny>(), It.IsAny>>())) +// .Returns, Expression>>((query, expression) => +// { +// Assert.IsNotNull(query); +// Assert.Equal(query.Count(), 1); +// Assert.IsTrue(query.Any(r => r.Name == "Fetch_Result")); + +// var result = new List {new TestModel {Name = "ThenFetch_Result"}}.AsQueryable(); +// return new FetchRequestTest(result); +// }); - provider - .Setup(p => p.FetchMany(It.IsAny>(), It.IsAny>>>())) - .Returns, Expression>>>((query, expression) => - { - Assert.AreEqual(query, originalQuery); - - var result = new List {new TestModel {Name = "FetchMany_Result"}}.AsQueryable(); - return new FetchRequestTest(result); - }); +// provider +// .Setup(p => p.FetchMany(It.IsAny>(), It.IsAny>>>())) +// .Returns, Expression>>>((query, expression) => +// { +// Assert.Equal(query, originalQuery); + +// var result = new List {new TestModel {Name = "FetchMany_Result"}}.AsQueryable(); +// return new FetchRequestTest(result); +// }); - provider - .Setup(p => p.ThenFetchMany(It.IsAny>(), It.IsAny>>>())) - .Returns, Expression>>>((query, expression) => - { - Assert.IsNotNull(query); - Assert.AreEqual(query.Count(), 1); - Assert.IsTrue(query.Any(r => r.Name == "FetchMany_Result")); - - var result = new List {new TestModel {Name = "ThenFetchMany_Result"}}.AsQueryable(); - return new FetchRequestTest(result); - }); - - return provider.Object; - } - - private class TestModel - { - public string Name { get; set; } - - public TestModel Parent { get; set; } +// provider +// .Setup(p => p.ThenFetchMany(It.IsAny>(), It.IsAny>>>())) +// .Returns, Expression>>>((query, expression) => +// { +// Assert.IsNotNull(query); +// Assert.Equal(query.Count(), 1); +// Assert.IsTrue(query.Any(r => r.Name == "FetchMany_Result")); + +// var result = new List {new TestModel {Name = "ThenFetchMany_Result"}}.AsQueryable(); +// return new FetchRequestTest(result); +// }); + +// return provider.Object; +// } + +// private class TestModel +// { +// public string Name { get; set; } + +// public TestModel Parent { get; set; } - public IEnumerable Children { get; set; } - } - - private class FetchRequestTest : IFetchRequest - { - public readonly IQueryable query; - - public IEnumerator GetEnumerator() - { - return query.GetEnumerator(); - } - - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() - { - return query.GetEnumerator(); - } - - public Type ElementType - { - get { return query.ElementType; } - } - - public Expression Expression - { - get { return query.Expression; } - } - - public IQueryProvider Provider - { - get { return query.Provider; } - } - - public FetchRequestTest(IQueryable query) - { - this.query = query; - } - } - } -} +// public IEnumerable Children { get; set; } +// } + +// private class FetchRequestTest : IFetchRequest +// { +// public readonly IQueryable query; + +// public IEnumerator GetEnumerator() +// { +// return query.GetEnumerator(); +// } + +// System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() +// { +// return query.GetEnumerator(); +// } + +// public Type ElementType +// { +// get { return query.ElementType; } +// } + +// public Expression Expression +// { +// get { return query.Expression; } +// } + +// public IQueryProvider Provider +// { +// get { return query.Provider; } +// } + +// public FetchRequestTest(IQueryable query) +// { +// this.query = query; +// } +// } +// } +//} diff --git a/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/QueryableExtensionsTests.cs b/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/QueryableExtensionsTests.cs index 2cb73fb..4c6c0ae 100644 --- a/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/QueryableExtensionsTests.cs +++ b/vNext/test/BetterModules.Core.Tests/DataAccess/DataContext/QueryableExtensionsTests.cs @@ -3,115 +3,117 @@ using BetterModules.Core.DataAccess.DataContext; using BetterModules.Core.Exceptions.DataTier; - -using NUnit.Framework; +using Xunit; namespace BetterModules.Core.Tests.DataAccess.DataContext { - [TestFixture] public class QueryableExtensionsTests { - [Test] - [ExpectedException(typeof(EntityNotFoundException))] + [Fact] public void Enumerable_FirstOne_Should_Throw_EntityNotFoundException() { - var list = new List(); - list.AsEnumerable().FirstOne(); + Assert.Throws(delegate + { + var list = new List(); + list.AsEnumerable().FirstOne(); + }); } - [Test] + [Fact] public void Enumerable_FirstOne_Should_Return_First_Item() { var list = new List { "First", "Second", "Third" }; var first = list.AsEnumerable().FirstOne(); - Assert.AreEqual(first, "First"); + Assert.Equal(first, "First"); } - [Test] - [ExpectedException(typeof(EntityNotFoundException))] + [Fact] public void Queryable_FirstOne_Should_Throw_EntityNotFoundException() { - var list = new List(); - list.AsQueryable().FirstOne(); + Assert.Throws(delegate + { + var list = new List(); + list.AsQueryable().FirstOne(); + }); } - [Test] + [Fact] public void Queryable_FirstOne_Should_Return_First_Item() { var list = new List { "First", "Second", "Third" }; var first = list.AsQueryable().FirstOne(); - Assert.AreEqual(first, "First"); + Assert.Equal(first, "First"); } - [Test] + [Fact] public void Should_Add_Default_Paging() { var list = new List { "First", "Second", "Third" }; var list1 = list.AsQueryable().AddPaging().ToList(); - Assert.AreEqual(list1.Count, 3); - Assert.AreEqual("First", list1[0]); - Assert.AreEqual("Second", list1[1]); - Assert.AreEqual("Third", list1[2]); + Assert.Equal(list1.Count, 3); + Assert.Equal("First", list1[0]); + Assert.Equal("Second", list1[1]); + Assert.Equal("Third", list1[2]); } - [Test] + [Fact] public void Should_Skip_Correct_Count_of_Items() { var list = new List { "First", "Second", "Third" }; var list1 = list.AsQueryable().AddPaging(2, 50).ToList(); - Assert.AreEqual(list1.Count, 2); - Assert.AreEqual("Second", list1[0]); - Assert.AreEqual("Third", list1[1]); + Assert.Equal(list1.Count, 2); + Assert.Equal("Second", list1[0]); + Assert.Equal("Third", list1[1]); } - [Test] + [Fact] public void Should_Skip_Ant_Take_Correct_Count_of_Items() { var list = new List { "First", "Second", "Third" }; var list1 = list.AsQueryable().AddPaging(2, 1).ToList(); - Assert.AreEqual(list1.Count, 1); - Assert.AreEqual("Second", list1[0]); + Assert.Equal(list1.Count, 1); + Assert.Equal("Second", list1[0]); } - [Test] + [Fact] public void Should_Add_Default_Order_Items() { var list = new List { "First", "Second", "Third" }; var list1 = list.AsQueryable().AddOrder().ToList(); - Assert.AreEqual(list1.Count, 3); - Assert.AreEqual("First", list1[0]); - Assert.AreEqual("Second", list1[1]); - Assert.AreEqual("Third", list1[2]); + Assert.Equal(list1.Count, 3); + Assert.Equal("First", list1[0]); + Assert.Equal("Second", list1[1]); + Assert.Equal("Third", list1[2]); } - [Test] + [Fact] public void Should_Add_Ascending_Order_Items() { var list = new List { new TestModel("02"), new TestModel("03"), new TestModel("01") }; var list1 = list.AsQueryable().AddOrder(t => t.Name).ToList(); - Assert.AreEqual(list1.Count, 3); - Assert.AreEqual("01", list1[0].Name); - Assert.AreEqual("02", list1[1].Name); - Assert.AreEqual("03", list1[2].Name); + Assert.Equal(list1.Count, 3); + Assert.Equal("01", list1[0].Name); + Assert.Equal("02", list1[1].Name); + Assert.Equal("03", list1[2].Name); } - [Test] + [Fact] public void Should_Add_Descending_Order_Items() { var list = new List { new TestModel("02"), new TestModel("03"), new TestModel("01") }; var list1 = list.AsQueryable().AddOrder(t => t.Name, true).ToList(); - Assert.AreEqual(list1.Count, 3); - Assert.AreEqual("03", list1[0].Name); - Assert.AreEqual("02", list1[1].Name); - Assert.AreEqual("01", list1[2].Name); + Assert.Equal(list1.Count, 3); + Assert.Equal("03", list1[0].Name); + Assert.Equal("02", list1[1].Name); + Assert.Equal("01", list1[2].Name); } private class TestModel diff --git a/vNext/test/BetterModules.Core.Tests/DataAccess/PredicateBuilderTests.cs b/vNext/test/BetterModules.Core.Tests/DataAccess/PredicateBuilderTests.cs index 7b497de..ce1bb72 100644 --- a/vNext/test/BetterModules.Core.Tests/DataAccess/PredicateBuilderTests.cs +++ b/vNext/test/BetterModules.Core.Tests/DataAccess/PredicateBuilderTests.cs @@ -1,11 +1,10 @@ using System.Linq; using BetterModules.Core.DataAccess; -using NUnit.Framework; +using Xunit; namespace BetterModules.Core.Tests.DataAccess { - [TestFixture] - public class PredicateBuilderTests : TestBase + public class PredicateBuilderTests { private static Fruit[] Values = { @@ -15,7 +14,7 @@ public class PredicateBuilderTests : TestBase new Fruit {Name ="apple", IsCitrus = false} }; - [Test] + [Fact] public void Should_Filter_False_Or_Correctly() { var predicateBuilder = PredicateBuilder.False(); @@ -23,13 +22,13 @@ public void Should_Filter_False_Or_Correctly() predicateBuilder = predicateBuilder.Or(p => p.Name == "apple"); var result = Values.AsQueryable().Where(predicateBuilder).ToList(); - Assert.IsNotNull(result); - Assert.AreEqual(result.Count, 2); + Assert.NotNull(result); + Assert.Equal(result.Count, 2); Assert.Contains(Values.First(v => v.Name == "orange"), result); Assert.Contains(Values.First(v => v.Name == "apple"), result); } - [Test] + [Fact] public void Should_Filter_True_And_Correctly() { var predicateBuilder = PredicateBuilder.True(); @@ -37,8 +36,8 @@ public void Should_Filter_True_And_Correctly() predicateBuilder = predicateBuilder.And(p => p.IsCitrus); var result = Values.AsQueryable().Where(predicateBuilder).ToList(); - Assert.IsNotNull(result); - Assert.AreEqual(result.Count, 1); + Assert.NotNull(result); + Assert.Equal(result.Count, 1); Assert.Contains(Values.First(v => v.Name == "lemon"), result); } diff --git a/BetterModules.Core.Tests/Environment/FileSystem/DefaultWorkingDirectoryTests.cs b/vNext/test/BetterModules.Core.Tests/Environment/FileSystem/DefaultWorkingDirectoryTests.cs similarity index 100% rename from BetterModules.Core.Tests/Environment/FileSystem/DefaultWorkingDirectoryTests.cs rename to vNext/test/BetterModules.Core.Tests/Environment/FileSystem/DefaultWorkingDirectoryTests.cs diff --git a/BetterModules.Core.Tests/Events/CoreEventsTests.cs b/vNext/test/BetterModules.Core.Tests/Events/CoreEventsTests.cs similarity index 100% rename from BetterModules.Core.Tests/Events/CoreEventsTests.cs rename to vNext/test/BetterModules.Core.Tests/Events/CoreEventsTests.cs diff --git a/BetterModules.Core.Tests/Events/EntitySavingEventArgsTests.cs b/vNext/test/BetterModules.Core.Tests/Events/EntitySavingEventArgsTests.cs similarity index 100% rename from BetterModules.Core.Tests/Events/EntitySavingEventArgsTests.cs rename to vNext/test/BetterModules.Core.Tests/Events/EntitySavingEventArgsTests.cs diff --git a/BetterModules.Core.Tests/Events/SingleItemEventArgsTests.cs b/vNext/test/BetterModules.Core.Tests/Events/SingleItemEventArgsTests.cs similarity index 100% rename from BetterModules.Core.Tests/Events/SingleItemEventArgsTests.cs rename to vNext/test/BetterModules.Core.Tests/Events/SingleItemEventArgsTests.cs diff --git a/BetterModules.Core.Tests/Exceptions/DataTier/ConcurrentDataExceptionTests.cs b/vNext/test/BetterModules.Core.Tests/Exceptions/DataTier/ConcurrentDataExceptionTests.cs similarity index 100% rename from BetterModules.Core.Tests/Exceptions/DataTier/ConcurrentDataExceptionTests.cs rename to vNext/test/BetterModules.Core.Tests/Exceptions/DataTier/ConcurrentDataExceptionTests.cs diff --git a/BetterModules.Core.Tests/Exceptions/DataTier/EntityNotFoundExceptionTests.cs b/vNext/test/BetterModules.Core.Tests/Exceptions/DataTier/EntityNotFoundExceptionTests.cs similarity index 100% rename from BetterModules.Core.Tests/Exceptions/DataTier/EntityNotFoundExceptionTests.cs rename to vNext/test/BetterModules.Core.Tests/Exceptions/DataTier/EntityNotFoundExceptionTests.cs diff --git a/BetterModules.Core.Tests/Extensions/TypeExtensionsTests.cs b/vNext/test/BetterModules.Core.Tests/Extensions/TypeExtensionsTests.cs similarity index 100% rename from BetterModules.Core.Tests/Extensions/TypeExtensionsTests.cs rename to vNext/test/BetterModules.Core.Tests/Extensions/TypeExtensionsTests.cs diff --git a/BetterModules.Core.Tests/Models/EquatableEntityTests.cs b/vNext/test/BetterModules.Core.Tests/Models/EquatableEntityTests.cs similarity index 100% rename from BetterModules.Core.Tests/Models/EquatableEntityTests.cs rename to vNext/test/BetterModules.Core.Tests/Models/EquatableEntityTests.cs diff --git a/BetterModules.Core.Tests/Models/SchemaNameProviderTests.cs b/vNext/test/BetterModules.Core.Tests/Models/SchemaNameProviderTests.cs similarity index 100% rename from BetterModules.Core.Tests/Models/SchemaNameProviderTests.cs rename to vNext/test/BetterModules.Core.Tests/Models/SchemaNameProviderTests.cs diff --git a/BetterModules.Core.Tests/Modules/ModuleDescriptorTests.cs b/vNext/test/BetterModules.Core.Tests/Modules/ModuleDescriptorTests.cs similarity index 100% rename from BetterModules.Core.Tests/Modules/ModuleDescriptorTests.cs rename to vNext/test/BetterModules.Core.Tests/Modules/ModuleDescriptorTests.cs diff --git a/BetterModules.Core.Tests/Modules/Registration/DefaultModulesRegistrationTests.cs b/vNext/test/BetterModules.Core.Tests/Modules/Registration/DefaultModulesRegistrationTests.cs similarity index 100% rename from BetterModules.Core.Tests/Modules/Registration/DefaultModulesRegistrationTests.cs rename to vNext/test/BetterModules.Core.Tests/Modules/Registration/DefaultModulesRegistrationTests.cs diff --git a/BetterModules.Core.Tests/Modules/Registration/ModuleRegistrationContextTests.cs b/vNext/test/BetterModules.Core.Tests/Modules/Registration/ModuleRegistrationContextTests.cs similarity index 100% rename from BetterModules.Core.Tests/Modules/Registration/ModuleRegistrationContextTests.cs rename to vNext/test/BetterModules.Core.Tests/Modules/Registration/ModuleRegistrationContextTests.cs diff --git a/BetterModules.Core.Tests/Properties/AssemblyInfo.cs b/vNext/test/BetterModules.Core.Tests/Properties/AssemblyInfo.cs similarity index 100% rename from BetterModules.Core.Tests/Properties/AssemblyInfo.cs rename to vNext/test/BetterModules.Core.Tests/Properties/AssemblyInfo.cs diff --git a/BetterModules.Core.Tests/Security/DefaultPrincipalProviderTests.cs b/vNext/test/BetterModules.Core.Tests/Security/DefaultPrincipalProviderTests.cs similarity index 100% rename from BetterModules.Core.Tests/Security/DefaultPrincipalProviderTests.cs rename to vNext/test/BetterModules.Core.Tests/Security/DefaultPrincipalProviderTests.cs diff --git a/BetterModules.Core.Tests/TestHelpers/ContextScopeProviderHelper.cs b/vNext/test/BetterModules.Core.Tests/TestHelpers/ContextScopeProviderHelper.cs similarity index 100% rename from BetterModules.Core.Tests/TestHelpers/ContextScopeProviderHelper.cs rename to vNext/test/BetterModules.Core.Tests/TestHelpers/ContextScopeProviderHelper.cs diff --git a/BetterModules.Core.Tests/TestHelpers/RandomTestDataProvider.cs b/vNext/test/BetterModules.Core.Tests/TestHelpers/RandomTestDataProvider.cs similarity index 100% rename from BetterModules.Core.Tests/TestHelpers/RandomTestDataProvider.cs rename to vNext/test/BetterModules.Core.Tests/TestHelpers/RandomTestDataProvider.cs