From ed924e3fcfae7431a957291591f70fe776e06014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20K=C3=B6hler?= Date: Tue, 25 Sep 2018 13:03:18 +0200 Subject: [PATCH 1/3] move testproject to new project structure, moved namespaces --- .../AddressFillingTest.cs | 8 +- .../Bug68HashsetCanNotBeCreated.cs | 10 +- ...ug87ErrorWhenNameInParentIsSameAsParent.cs | 11 +- .../Bug89FillTypesInheritsFromDictionary.cs | 8 +- .../Bug89FillTypesInheritsFromList.cs | 8 +- .../Bug91FailToCreateIReadOnlyCollection.cs | 4 +- .../CityNamesPluginTest.cs | 6 +- .../CollectionizerTest.cs | 4 +- .../CopyConstructorTest.cs | 3 +- .../CountryNamesPlugin.cs | 6 +- .../CreateInstanceTest.cs | 3 +- .../DateTimeRangeTest.cs | 13 +- .../DefaultDatatypeMappingsTest.cs | 4 +- .../EmailAddressesPluginTest.cs | 3 +- Tynamix.ObjectFiller.Test/EnumTest.cs | 3 +- .../Extensions/AssertExtensions.cs | 8 +- Tynamix.ObjectFiller.Test/HashStackTests.cs | 3 +- .../IpAddressPluginTest.cs | 4 +- .../LibraryFillingTest.cs | 5 +- Tynamix.ObjectFiller.Test/ListFillingTest.cs | 8 +- .../LoremIpsumPluginTest.cs | 8 +- .../ObjectFillerRecursiveTests.cs | 3 +- Tynamix.ObjectFiller.Test/ObjectFillerTest.cs | 9 +- .../PatternGeneratorTest.cs | 10 +- .../PersonFillingTest.cs | 7 +- .../Properties/AssemblyInfo.cs | 20 --- Tynamix.ObjectFiller.Test/RandomAccessTest.cs | 14 +- .../RandomizerPluginFake.cs | 3 +- Tynamix.ObjectFiller.Test/RandomizerTest.cs | 22 ++- Tynamix.ObjectFiller.Test/RangePluginTest.cs | 5 +- .../RealNamePluginTest.cs | 6 +- .../SaveFillerSetupTest.cs | 5 +- .../SequenceGeneratorTest.cs | 4 +- Tynamix.ObjectFiller.Test/SetupTests.cs | 8 +- .../StreetNamesPluginTest.cs | 4 +- .../TestIgnoranceOfInheritance.cs | 14 +- .../TestPoco/Library/Book.cs | 4 +- .../TestPoco/Library/IBook.cs | 2 +- .../TestPoco/Library/Library.cs | 7 +- .../Library/LibraryConstructorDictionary.cs | 2 +- .../Library/LibraryConstructorList.cs | 2 +- .../Library/LibraryConstructorPoco.cs | 2 +- .../Library/LibraryConstructorWithSimple.cs | 2 +- .../TestPoco/ListTest/Entity.cs | 2 +- .../TestPoco/ListTest/EntityCollection.cs | 2 +- .../TestPoco/Person/Address.cs | 2 +- .../TestPoco/Person/IAddress.cs | 2 +- .../Person/OrderedPersonProperties.cs | 2 +- .../TestPoco/Person/Person.cs | 2 +- .../TestPoco/SimpleList.cs | 2 +- .../TestPoco/TestEnum.cs | 6 +- .../Tynamix.ObjectFiller.Test.csproj | 130 ++---------------- Tynamix.ObjectFiller.Test/UriTest.cs | 3 +- Tynamix.ObjectFiller.Test/UrlTests.cs | 3 +- 54 files changed, 100 insertions(+), 341 deletions(-) delete mode 100644 Tynamix.ObjectFiller.Test/Properties/AssemblyInfo.cs diff --git a/Tynamix.ObjectFiller.Test/AddressFillingTest.cs b/Tynamix.ObjectFiller.Test/AddressFillingTest.cs index 1203696..188d949 100644 --- a/Tynamix.ObjectFiller.Test/AddressFillingTest.cs +++ b/Tynamix.ObjectFiller.Test/AddressFillingTest.cs @@ -1,11 +1,9 @@ +using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; -using ObjectFiller.Test.TestPoco.Person; -using Tynamix.ObjectFiller; +using Tynamix.ObjectFiller.Test.TestPoco.Person; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - using System.Linq; - [TestClass] public class AddressFillingTest { diff --git a/Tynamix.ObjectFiller.Test/BugfixTests/Bug68HashsetCanNotBeCreated.cs b/Tynamix.ObjectFiller.Test/BugfixTests/Bug68HashsetCanNotBeCreated.cs index bc9e10c..a40e55d 100644 --- a/Tynamix.ObjectFiller.Test/BugfixTests/Bug68HashsetCanNotBeCreated.cs +++ b/Tynamix.ObjectFiller.Test/BugfixTests/Bug68HashsetCanNotBeCreated.cs @@ -1,15 +1,9 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test.BugfixTests +namespace Tynamix.ObjectFiller.Test.BugfixTests { - using Tynamix.ObjectFiller; - - - public class Bug68HashsetCanNotBeCreated { [TestMethod] diff --git a/Tynamix.ObjectFiller.Test/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs b/Tynamix.ObjectFiller.Test/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs index 6ee3583..b3aea0f 100644 --- a/Tynamix.ObjectFiller.Test/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs +++ b/Tynamix.ObjectFiller.Test/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs @@ -1,14 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test.BugfixTests +namespace Tynamix.ObjectFiller.Test.BugfixTests { - using Tynamix.ObjectFiller; - - [TestClass] public class Bug87ErrorWhenNameInParentIsSameAsParent { diff --git a/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs b/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs index 41a718d..04b3c94 100644 --- a/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs +++ b/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs @@ -1,16 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test.BugfixTests +namespace Tynamix.ObjectFiller.Test.BugfixTests { - using Tynamix.ObjectFiller; - - - - public class Bug89FillTypesInheritsFromDictionary { public class EntityA diff --git a/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromList.cs b/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromList.cs index 18b73cb..b48679c 100644 --- a/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromList.cs +++ b/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromList.cs @@ -1,16 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test.BugfixTests +namespace Tynamix.ObjectFiller.Test.BugfixTests { - using Tynamix.ObjectFiller; - - - - public class Bug89FillTypesInheritsFromList { public class EntityA diff --git a/Tynamix.ObjectFiller.Test/BugfixTests/Bug91FailToCreateIReadOnlyCollection.cs b/Tynamix.ObjectFiller.Test/BugfixTests/Bug91FailToCreateIReadOnlyCollection.cs index 0d4569c..1a8bf42 100644 --- a/Tynamix.ObjectFiller.Test/BugfixTests/Bug91FailToCreateIReadOnlyCollection.cs +++ b/Tynamix.ObjectFiller.Test/BugfixTests/Bug91FailToCreateIReadOnlyCollection.cs @@ -1,13 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; +using Tynamix.ObjectFiller.Test.TestPoco.Library; namespace Tynamix.ObjectFiller.Test.BugfixTests { using System.Collections; - - using global::ObjectFiller.Test.TestPoco.Library; - using Microsoft.VisualStudio.TestTools.UnitTesting; public class OrderWithObject diff --git a/Tynamix.ObjectFiller.Test/CityNamesPluginTest.cs b/Tynamix.ObjectFiller.Test/CityNamesPluginTest.cs index bcaa4bd..7237869 100644 --- a/Tynamix.ObjectFiller.Test/CityNamesPluginTest.cs +++ b/Tynamix.ObjectFiller.Test/CityNamesPluginTest.cs @@ -1,11 +1,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - - - using Tynamix.ObjectFiller; - [TestClass] public class CityNamesPluginTest { diff --git a/Tynamix.ObjectFiller.Test/CollectionizerTest.cs b/Tynamix.ObjectFiller.Test/CollectionizerTest.cs index 0c2e37d..314fa7f 100644 --- a/Tynamix.ObjectFiller.Test/CollectionizerTest.cs +++ b/Tynamix.ObjectFiller.Test/CollectionizerTest.cs @@ -3,10 +3,8 @@ using System.Diagnostics; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { public class CollectionizerPoco { diff --git a/Tynamix.ObjectFiller.Test/CopyConstructorTest.cs b/Tynamix.ObjectFiller.Test/CopyConstructorTest.cs index 64fe834..1044a8a 100644 --- a/Tynamix.ObjectFiller.Test/CopyConstructorTest.cs +++ b/Tynamix.ObjectFiller.Test/CopyConstructorTest.cs @@ -1,8 +1,7 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class CopyConstructorTest diff --git a/Tynamix.ObjectFiller.Test/CountryNamesPlugin.cs b/Tynamix.ObjectFiller.Test/CountryNamesPlugin.cs index 2573dce..b7bc967 100644 --- a/Tynamix.ObjectFiller.Test/CountryNamesPlugin.cs +++ b/Tynamix.ObjectFiller.Test/CountryNamesPlugin.cs @@ -1,11 +1,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - - - using Tynamix.ObjectFiller; - [TestClass] public class CountryNamesPlugin { diff --git a/Tynamix.ObjectFiller.Test/CreateInstanceTest.cs b/Tynamix.ObjectFiller.Test/CreateInstanceTest.cs index 4977083..f704c11 100644 --- a/Tynamix.ObjectFiller.Test/CreateInstanceTest.cs +++ b/Tynamix.ObjectFiller.Test/CreateInstanceTest.cs @@ -1,9 +1,8 @@ using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { public abstract class Parent diff --git a/Tynamix.ObjectFiller.Test/DateTimeRangeTest.cs b/Tynamix.ObjectFiller.Test/DateTimeRangeTest.cs index 384d09c..31de4ca 100644 --- a/Tynamix.ObjectFiller.Test/DateTimeRangeTest.cs +++ b/Tynamix.ObjectFiller.Test/DateTimeRangeTest.cs @@ -1,14 +1,9 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Linq; +using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - using System; - using System.Linq; - - - - using Tynamix.ObjectFiller; - public class DateRangeTestClass { public DateTime Date { get; set; } diff --git a/Tynamix.ObjectFiller.Test/DefaultDatatypeMappingsTest.cs b/Tynamix.ObjectFiller.Test/DefaultDatatypeMappingsTest.cs index 02914f2..b1f14ff 100644 --- a/Tynamix.ObjectFiller.Test/DefaultDatatypeMappingsTest.cs +++ b/Tynamix.ObjectFiller.Test/DefaultDatatypeMappingsTest.cs @@ -1,10 +1,8 @@ using System; -using System.Diagnostics; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class DefaultDatatypeMappingsTest diff --git a/Tynamix.ObjectFiller.Test/EmailAddressesPluginTest.cs b/Tynamix.ObjectFiller.Test/EmailAddressesPluginTest.cs index 123a950..7379271 100644 --- a/Tynamix.ObjectFiller.Test/EmailAddressesPluginTest.cs +++ b/Tynamix.ObjectFiller.Test/EmailAddressesPluginTest.cs @@ -1,8 +1,7 @@ using System.Text.RegularExpressions; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class EmailAddressesPluginTests diff --git a/Tynamix.ObjectFiller.Test/EnumTest.cs b/Tynamix.ObjectFiller.Test/EnumTest.cs index a14ee5b..ac9ac99 100644 --- a/Tynamix.ObjectFiller.Test/EnumTest.cs +++ b/Tynamix.ObjectFiller.Test/EnumTest.cs @@ -1,8 +1,7 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class EnumTest diff --git a/Tynamix.ObjectFiller.Test/Extensions/AssertExtensions.cs b/Tynamix.ObjectFiller.Test/Extensions/AssertExtensions.cs index 2f05c42..c1ab808 100644 --- a/Tynamix.ObjectFiller.Test/Extensions/AssertExtensions.cs +++ b/Tynamix.ObjectFiller.Test/Extensions/AssertExtensions.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Tynamix.Objectfiller.Test.Extensions +namespace Tynamix.ObjectFiller.Test.Extensions { class AssertExtensions { diff --git a/Tynamix.ObjectFiller.Test/HashStackTests.cs b/Tynamix.ObjectFiller.Test/HashStackTests.cs index 19262aa..a6958e1 100644 --- a/Tynamix.ObjectFiller.Test/HashStackTests.cs +++ b/Tynamix.ObjectFiller.Test/HashStackTests.cs @@ -1,8 +1,7 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class HashStackTests diff --git a/Tynamix.ObjectFiller.Test/IpAddressPluginTest.cs b/Tynamix.ObjectFiller.Test/IpAddressPluginTest.cs index c3cebc3..2f726f9 100644 --- a/Tynamix.ObjectFiller.Test/IpAddressPluginTest.cs +++ b/Tynamix.ObjectFiller.Test/IpAddressPluginTest.cs @@ -1,9 +1,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - using Tynamix.ObjectFiller; - [TestClass] public class IpAddressPluginTest { diff --git a/Tynamix.ObjectFiller.Test/LibraryFillingTest.cs b/Tynamix.ObjectFiller.Test/LibraryFillingTest.cs index 9f11e6c..bb3aaf1 100644 --- a/Tynamix.ObjectFiller.Test/LibraryFillingTest.cs +++ b/Tynamix.ObjectFiller.Test/LibraryFillingTest.cs @@ -1,10 +1,9 @@ using System; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; -using ObjectFiller.Test.TestPoco.Library; -using Tynamix.ObjectFiller; +using Tynamix.ObjectFiller.Test.TestPoco.Library; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class LibraryFillingTest diff --git a/Tynamix.ObjectFiller.Test/ListFillingTest.cs b/Tynamix.ObjectFiller.Test/ListFillingTest.cs index 083e0e4..f6d1587 100644 --- a/Tynamix.ObjectFiller.Test/ListFillingTest.cs +++ b/Tynamix.ObjectFiller.Test/ListFillingTest.cs @@ -2,13 +2,11 @@ using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; -using ObjectFiller.Test.TestPoco.ListTest; -using Tynamix.ObjectFiller; +using Tynamix.ObjectFiller.Test.TestPoco; +using Tynamix.ObjectFiller.Test.TestPoco.ListTest; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - using ObjectFiller.Test.TestPoco; - [TestClass] public class ListFillingTest { diff --git a/Tynamix.ObjectFiller.Test/LoremIpsumPluginTest.cs b/Tynamix.ObjectFiller.Test/LoremIpsumPluginTest.cs index 6926c11..2b2371a 100644 --- a/Tynamix.ObjectFiller.Test/LoremIpsumPluginTest.cs +++ b/Tynamix.ObjectFiller.Test/LoremIpsumPluginTest.cs @@ -1,13 +1,9 @@ -using System; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; -using ObjectFiller.Test.TestPoco.Library; -using Tynamix.ObjectFiller; +using Tynamix.ObjectFiller.Test.TestPoco.Library; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - using System.Collections.Generic; - [TestClass] public class LoremIpsumPluginTest { diff --git a/Tynamix.ObjectFiller.Test/ObjectFillerRecursiveTests.cs b/Tynamix.ObjectFiller.Test/ObjectFillerRecursiveTests.cs index fc02ae4..9b38fb1 100644 --- a/Tynamix.ObjectFiller.Test/ObjectFillerRecursiveTests.cs +++ b/Tynamix.ObjectFiller.Test/ObjectFillerRecursiveTests.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class ObjectFillerRecursiveTests diff --git a/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs b/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs index e7019d7..1aaffce 100644 --- a/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs +++ b/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs @@ -1,11 +1,9 @@ -using System; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; -using ObjectFiller.Test.TestPoco.Person; -using Tynamix.ObjectFiller; +using Tynamix.ObjectFiller.Test.TestPoco.Person; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class ObjectFillerTest @@ -29,9 +27,6 @@ public void TestFillPerson() Assert.IsTrue(new List() { "Maik", "Tom", "Anton" }.Contains(pFilled.LastName)); } - - - [TestMethod] public void CreateMultipleInstances() { diff --git a/Tynamix.ObjectFiller.Test/PatternGeneratorTest.cs b/Tynamix.ObjectFiller.Test/PatternGeneratorTest.cs index b43c0ea..d879768 100644 --- a/Tynamix.ObjectFiller.Test/PatternGeneratorTest.cs +++ b/Tynamix.ObjectFiller.Test/PatternGeneratorTest.cs @@ -1,13 +1,9 @@ -using System; -using System.Reflection.Emit; - -using System.Text.RegularExpressions; using System.Collections.Generic; +using System.Text.RegularExpressions; using Microsoft.VisualStudio.TestTools.UnitTesting; -using ObjectFiller.Test.TestPoco.Person; -using Tynamix.ObjectFiller; +using Tynamix.ObjectFiller.Test.TestPoco.Person; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class PatternGeneratorTest diff --git a/Tynamix.ObjectFiller.Test/PersonFillingTest.cs b/Tynamix.ObjectFiller.Test/PersonFillingTest.cs index 4b6e8a4..0316f5f 100644 --- a/Tynamix.ObjectFiller.Test/PersonFillingTest.cs +++ b/Tynamix.ObjectFiller.Test/PersonFillingTest.cs @@ -1,12 +1,9 @@ -using System; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; -using ObjectFiller.Test.TestPoco.Person; -using Tynamix.ObjectFiller; -using Random = Tynamix.ObjectFiller.Random; +using Tynamix.ObjectFiller.Test.TestPoco.Person; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class PersonFillingTest diff --git a/Tynamix.ObjectFiller.Test/Properties/AssemblyInfo.cs b/Tynamix.ObjectFiller.Test/Properties/AssemblyInfo.cs deleted file mode 100644 index 8d1a84f..0000000 --- a/Tynamix.ObjectFiller.Test/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("Tynamix.ObjectFiller.Test")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Tynamix.ObjectFiller.Test")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -[assembly: ComVisible(false)] - -[assembly: Guid("f2bfbbdc-e8a0-4263-ad9a-ddc87c4cd4de")] - -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Tynamix.ObjectFiller.Test/RandomAccessTest.cs b/Tynamix.ObjectFiller.Test/RandomAccessTest.cs index 03c58f7..fa23937 100644 --- a/Tynamix.ObjectFiller.Test/RandomAccessTest.cs +++ b/Tynamix.ObjectFiller.Test/RandomAccessTest.cs @@ -1,14 +1,10 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - - - using Tynamix.ObjectFiller; - [TestClass] public class RandomAccessTest { diff --git a/Tynamix.ObjectFiller.Test/RandomizerPluginFake.cs b/Tynamix.ObjectFiller.Test/RandomizerPluginFake.cs index 21504a7..9fdda8a 100644 --- a/Tynamix.ObjectFiller.Test/RandomizerPluginFake.cs +++ b/Tynamix.ObjectFiller.Test/RandomizerPluginFake.cs @@ -1,7 +1,6 @@ using System; -using Tynamix.ObjectFiller; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { public class FakeRandomizerPlugin : IRandomizerPlugin { diff --git a/Tynamix.ObjectFiller.Test/RandomizerTest.cs b/Tynamix.ObjectFiller.Test/RandomizerTest.cs index 109aff7..b87f2c5 100644 --- a/Tynamix.ObjectFiller.Test/RandomizerTest.cs +++ b/Tynamix.ObjectFiller.Test/RandomizerTest.cs @@ -1,18 +1,12 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace ObjectFiller.Test +using System; +using System.Collections.Generic; +using System.Linq; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Tynamix.ObjectFiller.Test.TestPoco.Library; +using Tynamix.ObjectFiller.Test.TestPoco.Person; + +namespace Tynamix.ObjectFiller.Test { - using System; - using System.Collections.Generic; - using System.Linq; - - - - using ObjectFiller.Test.TestPoco.Library; - using ObjectFiller.Test.TestPoco.Person; - - using Tynamix.ObjectFiller; - [TestClass] public class RandomizerTest { diff --git a/Tynamix.ObjectFiller.Test/RangePluginTest.cs b/Tynamix.ObjectFiller.Test/RangePluginTest.cs index eab56f9..ab152ce 100644 --- a/Tynamix.ObjectFiller.Test/RangePluginTest.cs +++ b/Tynamix.ObjectFiller.Test/RangePluginTest.cs @@ -1,9 +1,8 @@ using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; -using ObjectFiller.Test.TestPoco; -using Tynamix.ObjectFiller; +using Tynamix.ObjectFiller.Test.TestPoco; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class RangePluginTest diff --git a/Tynamix.ObjectFiller.Test/RealNamePluginTest.cs b/Tynamix.ObjectFiller.Test/RealNamePluginTest.cs index 0fff6d8..3f1a6b8 100644 --- a/Tynamix.ObjectFiller.Test/RealNamePluginTest.cs +++ b/Tynamix.ObjectFiller.Test/RealNamePluginTest.cs @@ -1,8 +1,6 @@ - -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; +using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class RealNamePluginTest diff --git a/Tynamix.ObjectFiller.Test/SaveFillerSetupTest.cs b/Tynamix.ObjectFiller.Test/SaveFillerSetupTest.cs index 7f7e592..ded6f50 100644 --- a/Tynamix.ObjectFiller.Test/SaveFillerSetupTest.cs +++ b/Tynamix.ObjectFiller.Test/SaveFillerSetupTest.cs @@ -1,9 +1,8 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; -using ObjectFiller.Test.TestPoco.Person; -using Tynamix.ObjectFiller; +using Tynamix.ObjectFiller.Test.TestPoco.Person; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class SaveFillerSetupTest diff --git a/Tynamix.ObjectFiller.Test/SequenceGeneratorTest.cs b/Tynamix.ObjectFiller.Test/SequenceGeneratorTest.cs index 4f7f928..e3bf11f 100644 --- a/Tynamix.ObjectFiller.Test/SequenceGeneratorTest.cs +++ b/Tynamix.ObjectFiller.Test/SequenceGeneratorTest.cs @@ -1,9 +1,9 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; + // ReSharper disable RedundantCast -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class SequenceGeneratorTest diff --git a/Tynamix.ObjectFiller.Test/SetupTests.cs b/Tynamix.ObjectFiller.Test/SetupTests.cs index 101b754..2d599f5 100644 --- a/Tynamix.ObjectFiller.Test/SetupTests.cs +++ b/Tynamix.ObjectFiller.Test/SetupTests.cs @@ -1,11 +1,7 @@ -using System; -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - using Tynamix.ObjectFiller; - [TestClass] public class SetupTests { diff --git a/Tynamix.ObjectFiller.Test/StreetNamesPluginTest.cs b/Tynamix.ObjectFiller.Test/StreetNamesPluginTest.cs index 62d069d..174220a 100644 --- a/Tynamix.ObjectFiller.Test/StreetNamesPluginTest.cs +++ b/Tynamix.ObjectFiller.Test/StreetNamesPluginTest.cs @@ -2,10 +2,8 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - using Tynamix.ObjectFiller; - [TestClass] public class StreetNamesPluginTest { diff --git a/Tynamix.ObjectFiller.Test/TestIgnoranceOfInheritance.cs b/Tynamix.ObjectFiller.Test/TestIgnoranceOfInheritance.cs index 7aea615..071f3e9 100644 --- a/Tynamix.ObjectFiller.Test/TestIgnoranceOfInheritance.cs +++ b/Tynamix.ObjectFiller.Test/TestIgnoranceOfInheritance.cs @@ -1,16 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Tynamix.ObjectFiller.Test.TestPoco.Person; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { - using ObjectFiller.Test.TestPoco.Person; - - - using Tynamix.ObjectFiller; - public class Student : Person { public string Class { get; set; } diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Library/Book.cs b/Tynamix.ObjectFiller.Test/TestPoco/Library/Book.cs index 9b87334..c269b0b 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Library/Book.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Library/Book.cs @@ -1,6 +1,4 @@ -using System.Runtime.CompilerServices; - -namespace ObjectFiller.Test.TestPoco.Library +namespace Tynamix.ObjectFiller.Test.TestPoco.Library { public class Book : IBook { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Library/IBook.cs b/Tynamix.ObjectFiller.Test/TestPoco/Library/IBook.cs index cd3f263..f1be61a 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Library/IBook.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Library/IBook.cs @@ -1,4 +1,4 @@ -namespace ObjectFiller.Test.TestPoco.Library +namespace Tynamix.ObjectFiller.Test.TestPoco.Library { public interface IBook { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Library/Library.cs b/Tynamix.ObjectFiller.Test/TestPoco/Library/Library.cs index 9d5f2ca..5b30982 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Library/Library.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Library/Library.cs @@ -1,9 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System.Collections.Generic; -namespace ObjectFiller.Test.TestPoco.Library +namespace Tynamix.ObjectFiller.Test.TestPoco.Library { public abstract class Library { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorDictionary.cs b/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorDictionary.cs index 6f3c29e..440715c 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorDictionary.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorDictionary.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace ObjectFiller.Test.TestPoco.Library +namespace Tynamix.ObjectFiller.Test.TestPoco.Library { public class LibraryConstructorDictionary : Library { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorList.cs b/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorList.cs index 809cbbc..7b30bb6 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorList.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorList.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace ObjectFiller.Test.TestPoco.Library +namespace Tynamix.ObjectFiller.Test.TestPoco.Library { public class LibraryConstructorList : Library { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorPoco.cs b/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorPoco.cs index cb301ff..1eace2a 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorPoco.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorPoco.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace ObjectFiller.Test.TestPoco.Library +namespace Tynamix.ObjectFiller.Test.TestPoco.Library { public class LibraryConstructorPoco : Library { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorWithSimple.cs b/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorWithSimple.cs index 4dff373..ee35b15 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorWithSimple.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Library/LibraryConstructorWithSimple.cs @@ -1,4 +1,4 @@ -namespace ObjectFiller.Test.TestPoco.Library +namespace Tynamix.ObjectFiller.Test.TestPoco.Library { public class LibraryConstructorWithSimple : Library { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/ListTest/Entity.cs b/Tynamix.ObjectFiller.Test/TestPoco/ListTest/Entity.cs index d72342f..d204153 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/ListTest/Entity.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/ListTest/Entity.cs @@ -1,4 +1,4 @@ -namespace ObjectFiller.Test.TestPoco.ListTest +namespace Tynamix.ObjectFiller.Test.TestPoco.ListTest { public class Entity { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/ListTest/EntityCollection.cs b/Tynamix.ObjectFiller.Test/TestPoco/ListTest/EntityCollection.cs index 6eaae07..f5ae8a3 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/ListTest/EntityCollection.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/ListTest/EntityCollection.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; -namespace ObjectFiller.Test.TestPoco.ListTest +namespace Tynamix.ObjectFiller.Test.TestPoco.ListTest { public class EntityCollection { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Person/Address.cs b/Tynamix.ObjectFiller.Test/TestPoco/Person/Address.cs index 2553f6d..b5d2f26 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Person/Address.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Person/Address.cs @@ -1,4 +1,4 @@ -namespace ObjectFiller.Test.TestPoco.Person +namespace Tynamix.ObjectFiller.Test.TestPoco.Person { public class Address : IAddress { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Person/IAddress.cs b/Tynamix.ObjectFiller.Test/TestPoco/Person/IAddress.cs index fc35102..a57919a 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Person/IAddress.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Person/IAddress.cs @@ -1,4 +1,4 @@ -namespace ObjectFiller.Test.TestPoco.Person +namespace Tynamix.ObjectFiller.Test.TestPoco.Person { public interface IAddress { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Person/OrderedPersonProperties.cs b/Tynamix.ObjectFiller.Test/TestPoco/Person/OrderedPersonProperties.cs index 7b52c7e..da67371 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Person/OrderedPersonProperties.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Person/OrderedPersonProperties.cs @@ -1,4 +1,4 @@ -namespace ObjectFiller.Test.TestPoco.Person +namespace Tynamix.ObjectFiller.Test.TestPoco.Person { public class OrderedPersonProperties { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/Person/Person.cs b/Tynamix.ObjectFiller.Test/TestPoco/Person/Person.cs index d74e46b..bf1046c 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/Person/Person.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/Person/Person.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace ObjectFiller.Test.TestPoco.Person +namespace Tynamix.ObjectFiller.Test.TestPoco.Person { public class Person { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/SimpleList.cs b/Tynamix.ObjectFiller.Test/TestPoco/SimpleList.cs index 4294aa7..8f53d59 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/SimpleList.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/SimpleList.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace ObjectFiller.Test.TestPoco +namespace Tynamix.ObjectFiller.Test.TestPoco { public class SimpleList { diff --git a/Tynamix.ObjectFiller.Test/TestPoco/TestEnum.cs b/Tynamix.ObjectFiller.Test/TestPoco/TestEnum.cs index 446be83..0fe72c0 100644 --- a/Tynamix.ObjectFiller.Test/TestPoco/TestEnum.cs +++ b/Tynamix.ObjectFiller.Test/TestPoco/TestEnum.cs @@ -1,7 +1,7 @@ -namespace ObjectFiller.Test.TestPoco -{ - using System; +using System; +namespace Tynamix.ObjectFiller.Test.TestPoco +{ [Flags] public enum TestEnum { diff --git a/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj b/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj index 2ba55bd..1c91430 100644 --- a/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj +++ b/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj @@ -1,126 +1,20 @@ - - - + + - Debug - AnyCPU - {F2BFBBDC-E8A0-4263-AD9A-DDC87C4CD4DE} - Library - Properties - Tynamix.ObjectFiller.Test - Tynamix.ObjectFiller.Test - v4.6.1 - 512 - {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 15.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages - False - UnitTest - - - + net461 - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\MSTest.TestFramework.1.1.11\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll - - - ..\packages\MSTest.TestFramework.1.1.11\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - + + - - {7f8e176c-12a7-45b7-886e-5a4923b2f252} - Tynamix.ObjectFiller - + - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/Tynamix.ObjectFiller.Test/UriTest.cs b/Tynamix.ObjectFiller.Test/UriTest.cs index f84ee30..972ca3b 100644 --- a/Tynamix.ObjectFiller.Test/UriTest.cs +++ b/Tynamix.ObjectFiller.Test/UriTest.cs @@ -1,8 +1,7 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class UriTest diff --git a/Tynamix.ObjectFiller.Test/UrlTests.cs b/Tynamix.ObjectFiller.Test/UrlTests.cs index bd26821..9e197ac 100644 --- a/Tynamix.ObjectFiller.Test/UrlTests.cs +++ b/Tynamix.ObjectFiller.Test/UrlTests.cs @@ -1,8 +1,7 @@ using System; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Tynamix.ObjectFiller; -namespace ObjectFiller.Test +namespace Tynamix.ObjectFiller.Test { [TestClass] public class UrlTest From 84395563f7cce6fee0a6473263c6ff6622af6382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20K=C3=B6hler?= Date: Tue, 25 Sep 2018 16:18:06 +0200 Subject: [PATCH 2/3] Implemented random seed --- Tynamix.ObjectFiller.Test/ObjectFillerTest.cs | 18 ++++++++++++ Tynamix.ObjectFiller/Filler.cs | 11 +++++++ Tynamix.ObjectFiller/Random.cs | 29 +++++++++++++++---- 3 files changed, 53 insertions(+), 5 deletions(-) diff --git a/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs b/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs index 1aaffce..b185f8c 100644 --- a/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs +++ b/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs @@ -36,5 +36,23 @@ public void CreateMultipleInstances() Assert.IsNotNull(pList); Assert.AreEqual(10, pList.Count()); } + + [TestMethod] + public void SetRandomSeedShallGenerateSameData() + { + var filler = new Filler
(); + + var address1 = filler.SetRandomSeed(1234).Create(); + + var filler2 = new Filler
(); + + var address2 = filler.SetRandomSeed(1234).Create(); + + Assert.AreEqual(address1.City, address2.City); + Assert.AreEqual(address1.Country, address2.Country); + Assert.AreEqual(address1.HouseNumber, address2.HouseNumber); + Assert.AreEqual(address1.PostalCode, address2.PostalCode); + Assert.AreEqual(address1.Street, address2.Street); + } } } diff --git a/Tynamix.ObjectFiller/Filler.cs b/Tynamix.ObjectFiller/Filler.cs index eefe2ee..afe652a 100644 --- a/Tynamix.ObjectFiller/Filler.cs +++ b/Tynamix.ObjectFiller/Filler.cs @@ -172,6 +172,17 @@ public FluentFillerApi Setup(FillerSetup fillerSetupToUse, bool explicitSetup return new FluentFillerApi(this.setupManager); } + /// + /// Set a random seed to generate always the same data for the same seed. + /// + /// Number for the data generation + /// This ObjectFiller instance + public Filler SetRandomSeed(int seed) + { + Random.SetSeed(seed); + return this; + } + #endregion #region Methods diff --git a/Tynamix.ObjectFiller/Random.cs b/Tynamix.ObjectFiller/Random.cs index fff3076..6bbf154 100644 --- a/Tynamix.ObjectFiller/Random.cs +++ b/Tynamix.ObjectFiller/Random.cs @@ -19,8 +19,8 @@ namespace Tynamix.ObjectFiller /// internal static class Random { - private static int RandomSeed; + /// /// Initializes static members of the class. /// A instance of @@ -30,6 +30,17 @@ static Random() RandomSeed = Environment.TickCount; } + /// + /// Set the seed for the class + /// and resets the to generate a new one after seed is set + /// + /// Seed to set + internal static void SetSeed(int seed) + { + RandomSeed = seed; + RndStorage = null; + } + #if NET35 /// /// A instance of @@ -49,15 +60,23 @@ private static System.Random Rnd } } #else - private static readonly ThreadLocal RndStorage = new ThreadLocal(() => - new System.Random(Interlocked.Increment(ref RandomSeed))); - + private static ThreadLocal RndStorage; + /// /// A instance of /// private static System.Random Rnd { - get { return RndStorage.Value; } + get + { + if (RndStorage == null) + { + RndStorage = new ThreadLocal(() => + new System.Random(Interlocked.Increment(ref RandomSeed))); + } + + return RndStorage.Value; + } } #endif From 59c2116adebfd23fc709b1df99e25650ce4afb08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20K=C3=B6hler?= Date: Tue, 25 Sep 2018 16:25:58 +0200 Subject: [PATCH 3/3] fix unittest --- Tynamix.ObjectFiller.Test/ObjectFillerTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs b/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs index b185f8c..c384fc1 100644 --- a/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs +++ b/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs @@ -46,7 +46,7 @@ public void SetRandomSeedShallGenerateSameData() var filler2 = new Filler
(); - var address2 = filler.SetRandomSeed(1234).Create(); + var address2 = filler2.SetRandomSeed(1234).Create(); Assert.AreEqual(address1.City, address2.City); Assert.AreEqual(address1.Country, address2.Country);