From 2770c7bce18a2b8eb22b9e5975b7b309b2c7d7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20K=C3=B6hler?= Date: Mon, 13 Feb 2017 01:50:13 +0100 Subject: [PATCH 1/3] ObjectFiller.NET moved. UnitTests missing --- ObjectFillerNET.sln | 39 +- .../AddressFillingTest.cs | 82 +- .../Tynamix.ObjectFiller.Test.csproj | 58 + .../Tynamix.ObjectFiller.Test.xproj | 26 - Tynamix.ObjectFiller.Test/project.json | 22 - Tynamix.ObjectFiller.Test/project.lock.json | 1093 ---- .../AddressFillingTest.cs | 125 + .../Bug68HashsetCanNotBeCreated.cs | 25 + ...ug87ErrorWhenNameInParentIsSameAsParent.cs | 39 + .../Bug89FillTypesInheritsFromDictionary.cs | 43 + .../Bug89FillTypesInheritsFromList.cs | 43 + .../CityNamesPluginTest.cs | 19 + .../CollectionizerTest.cs | 80 + .../CopyConstructorTest.cs | 62 + .../CountryNamesPlugin.cs | 19 + .../CreateInstanceTest.cs | 78 + .../DateTimeRangeTest.cs | 72 + .../DefaultDatatypeMappingsTest.cs | 72 + .../EmailAddressesPluginTest.cs | 122 + Tynamix.ObjectFiller.TestBCK/EnumTest.cs | 156 + .../HashStackTests.cs | 35 + .../IpAddressPluginTest.cs | 88 + .../LibraryFillingTest.cs | 130 + .../ListFillingTest.cs | 158 + .../LoremIpsumPluginTest.cs | 97 + .../ObjectFillerRecursiveTests.cs | 188 + .../ObjectFillerTest.cs | 45 + .../PatternGeneratorTest.cs | 287 ++ .../PersonFillingTest.cs | 241 + .../Properties/AssemblyInfo.cs | 0 .../RandomAccessTest.cs | 46 + .../RandomizerPluginFake.cs | 31 + .../RandomizerTest.cs | 98 + .../RangePluginTest.cs | 56 + .../RealNamePluginTest.cs | 67 + .../SaveFillerSetupTest.cs | 75 + .../SequenceGeneratorTest.cs | 331 ++ Tynamix.ObjectFiller.TestBCK/SetupTests.cs | 135 + .../StreetNamesPluginTest.cs | 39 + .../TestIgnoranceOfInheritance.cs | 43 + .../TestPoco/Library/Book.cs | 21 + .../TestPoco/Library/IBook.cs | 7 + .../TestPoco/Library/Library.cs | 15 + .../Library/LibraryConstructorDictionary.cs | 31 + .../Library/LibraryConstructorList.cs | 18 + .../Library/LibraryConstructorPoco.cs | 13 + .../Library/LibraryConstructorWithSimple.cs | 12 + .../TestPoco/ListTest/Entity.cs | 9 + .../TestPoco/ListTest/EntityCollection.cs | 22 + .../TestPoco/Person/Address.cs | 15 + .../TestPoco/Person/IAddress.cs | 7 + .../Person/OrderedPersonProperties.cs | 63 + .../TestPoco/Person/Person.cs | 30 + .../TestPoco/SimpleList.cs | 9 + .../TestPoco/TestEnum.cs | 13 + .../Tynamix.ObjectFiller.Test.csproj | 38 + .../Tynamix.ObjectFiller.csproj | 189 + .../Tynamix.ObjectFiller.xproj | 29 - Tynamix.ObjectFiller/project.json | 49 - Tynamix.ObjectFiller/project.lock.json | 4386 ----------------- global.json | 7 - 61 files changed, 3784 insertions(+), 5664 deletions(-) create mode 100644 Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj delete mode 100644 Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.xproj delete mode 100644 Tynamix.ObjectFiller.Test/project.json delete mode 100644 Tynamix.ObjectFiller.Test/project.lock.json create mode 100644 Tynamix.ObjectFiller.TestBCK/AddressFillingTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug68HashsetCanNotBeCreated.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromList.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/CityNamesPluginTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/CollectionizerTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/CopyConstructorTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/CountryNamesPlugin.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/CreateInstanceTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/DateTimeRangeTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/DefaultDatatypeMappingsTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/EmailAddressesPluginTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/EnumTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/HashStackTests.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/IpAddressPluginTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/LibraryFillingTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/ListFillingTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/LoremIpsumPluginTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/ObjectFillerRecursiveTests.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/ObjectFillerTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/PatternGeneratorTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/PersonFillingTest.cs rename {Tynamix.ObjectFiller.Test => Tynamix.ObjectFiller.TestBCK}/Properties/AssemblyInfo.cs (100%) create mode 100644 Tynamix.ObjectFiller.TestBCK/RandomAccessTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/RandomizerPluginFake.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/RandomizerTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/RangePluginTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/RealNamePluginTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/SaveFillerSetupTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/SequenceGeneratorTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/SetupTests.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/StreetNamesPluginTest.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestIgnoranceOfInheritance.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Book.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/IBook.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Library.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorDictionary.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorList.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorPoco.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorWithSimple.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/Entity.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/EntityCollection.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Address.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Person/IAddress.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Person/OrderedPersonProperties.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Person.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/SimpleList.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/TestEnum.cs create mode 100644 Tynamix.ObjectFiller.TestBCK/Tynamix.ObjectFiller.Test.csproj create mode 100644 Tynamix.ObjectFiller/Tynamix.ObjectFiller.csproj delete mode 100644 Tynamix.ObjectFiller/Tynamix.ObjectFiller.xproj delete mode 100644 Tynamix.ObjectFiller/project.json delete mode 100644 Tynamix.ObjectFiller/project.lock.json delete mode 100644 global.json diff --git a/ObjectFillerNET.sln b/ObjectFillerNET.sln index bd7984c..13ace2b 100644 --- a/ObjectFillerNET.sln +++ b/ObjectFillerNET.sln @@ -1,31 +1,48 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio 15 +VisualStudioVersion = 15.0.26206.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0EC5FD26-A565-4D47-A192-0FC142C3B7F0}" - ProjectSection(SolutionItems) = preProject - global.json = global.json - EndProjectSection EndProject -Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Tynamix.ObjectFiller", "Tynamix.ObjectFiller\Tynamix.ObjectFiller.xproj", "{3208D63E-1A26-453C-8A31-03491CD23780}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tynamix.ObjectFiller", "Tynamix.ObjectFiller\Tynamix.ObjectFiller.csproj", "{3208D63E-1A26-453C-8A31-03491CD23780}" EndProject -Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Tynamix.ObjectFiller.Test", "Tynamix.ObjectFiller.Test\Tynamix.ObjectFiller.Test.xproj", "{F679FAB4-CE29-48F8-B87C-3C89CDAF0D85}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tynamix.ObjectFiller.Test", "Tynamix.ObjectFiller.Test\Tynamix.ObjectFiller.Test.csproj", "{AF85E17E-BAA1-4580-A302-9935D8AC1E95}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {3208D63E-1A26-453C-8A31-03491CD23780}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3208D63E-1A26-453C-8A31-03491CD23780}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3208D63E-1A26-453C-8A31-03491CD23780}.Debug|x64.ActiveCfg = Debug|x64 + {3208D63E-1A26-453C-8A31-03491CD23780}.Debug|x64.Build.0 = Debug|x64 + {3208D63E-1A26-453C-8A31-03491CD23780}.Debug|x86.ActiveCfg = Debug|x86 + {3208D63E-1A26-453C-8A31-03491CD23780}.Debug|x86.Build.0 = Debug|x86 {3208D63E-1A26-453C-8A31-03491CD23780}.Release|Any CPU.ActiveCfg = Release|Any CPU {3208D63E-1A26-453C-8A31-03491CD23780}.Release|Any CPU.Build.0 = Release|Any CPU - {F679FAB4-CE29-48F8-B87C-3C89CDAF0D85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F679FAB4-CE29-48F8-B87C-3C89CDAF0D85}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F679FAB4-CE29-48F8-B87C-3C89CDAF0D85}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F679FAB4-CE29-48F8-B87C-3C89CDAF0D85}.Release|Any CPU.Build.0 = Release|Any CPU + {3208D63E-1A26-453C-8A31-03491CD23780}.Release|x64.ActiveCfg = Release|x64 + {3208D63E-1A26-453C-8A31-03491CD23780}.Release|x64.Build.0 = Release|x64 + {3208D63E-1A26-453C-8A31-03491CD23780}.Release|x86.ActiveCfg = Release|x86 + {3208D63E-1A26-453C-8A31-03491CD23780}.Release|x86.Build.0 = Release|x86 + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|x64.ActiveCfg = Debug|x64 + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|x64.Build.0 = Debug|x64 + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|x86.ActiveCfg = Debug|x86 + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|x86.Build.0 = Debug|x86 + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|Any CPU.Build.0 = Release|Any CPU + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|x64.ActiveCfg = Release|x64 + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|x64.Build.0 = Release|x64 + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|x86.ActiveCfg = Release|x86 + {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Tynamix.ObjectFiller.Test/AddressFillingTest.cs b/Tynamix.ObjectFiller.Test/AddressFillingTest.cs index ec110e5..1203696 100644 --- a/Tynamix.ObjectFiller.Test/AddressFillingTest.cs +++ b/Tynamix.ObjectFiller.Test/AddressFillingTest.cs @@ -1,4 +1,4 @@ -using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using ObjectFiller.Test.TestPoco.Person; using Tynamix.ObjectFiller; @@ -6,23 +6,23 @@ namespace ObjectFiller.Test { using System.Linq; - + [TestClass] public class AddressFillingTest { - [Fact] + [TestMethod] public void FillAllAddressProperties() { Filler
addressFiller = new Filler
(); - Address a = addressFiller.Create(); + Address a = addressFiller.Create(); - Assert.NotNull(a.City); - Assert.NotNull(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); + Assert.IsNotNull(a.City); + Assert.IsNotNull(a.Country); + Assert.AreNotEqual(0, a.HouseNumber); + Assert.IsNotNull(a.PostalCode); + Assert.IsNotNull(a.Street); } - [Fact] + [TestMethod] public void IgnoreCountry() { Filler
addressFiller = new Filler
(); @@ -30,14 +30,14 @@ public void IgnoreCountry() .OnProperty(x => x.Country).IgnoreIt(); Address a = addressFiller.Create(); - Assert.NotNull(a.City); - Assert.Null(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); + Assert.IsNotNull(a.City); + Assert.IsNull(a.Country); + Assert.AreNotEqual(0, a.HouseNumber); + Assert.IsNotNull(a.PostalCode); + Assert.IsNotNull(a.Street); } - [Fact] + [TestMethod] public void IgnoreCountryAndCity() { Filler
addressFiller = new Filler
(); @@ -45,14 +45,14 @@ public void IgnoreCountryAndCity() .OnProperty(x => x.Country, x => x.City).IgnoreIt(); Address a = addressFiller.Create(); - Assert.Null(a.City); - Assert.Null(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); + Assert.IsNull(a.City); + Assert.IsNull(a.Country); + Assert.AreNotEqual(0, a.HouseNumber); + Assert.IsNotNull(a.PostalCode); + Assert.IsNotNull(a.Street); } - [Fact] + [TestMethod] public void SetupCityPropertyWithConstantValue() { Filler
addressFiller = new Filler
(); @@ -60,14 +60,14 @@ public void SetupCityPropertyWithConstantValue() .OnProperty(ad => ad.City).Use(() => "City"); Address a = addressFiller.Create(); - Assert.Equal("City", a.City); - Assert.NotNull(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); + Assert.AreEqual("City", a.City); + Assert.IsNotNull(a.Country); + Assert.AreNotEqual(0, a.HouseNumber); + Assert.IsNotNull(a.PostalCode); + Assert.IsNotNull(a.Street); } - [Fact] + [TestMethod] public void SetupCityAndCountryPropertyWithConstantValue() { Filler
addressFiller = new Filler
(); @@ -75,14 +75,14 @@ public void SetupCityAndCountryPropertyWithConstantValue() .OnProperty(ad => ad.City, ad => ad.Country).Use(() => "CityCountry"); Address a = addressFiller.Create(); - Assert.Equal("CityCountry", a.City); - Assert.NotNull(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); + Assert.AreEqual("CityCountry", a.City); + Assert.IsNotNull(a.Country); + Assert.AreNotEqual(0, a.HouseNumber); + Assert.IsNotNull(a.PostalCode); + Assert.IsNotNull(a.Street); } - [Fact] + [TestMethod] public void SetupTheAdressWithStaticValues() { Filler
addressFiller = new Filler
(); @@ -93,13 +93,13 @@ public void SetupTheAdressWithStaticValues() .OnProperty(x => x.PostalCode).Use(() => "0011100"); var address = addressFiller.Create(); - Assert.Equal("Dresden", address.City); - Assert.Equal("Germany", address.Country); - Assert.Equal("0011100", address.PostalCode); - Assert.Equal(10, address.HouseNumber); + Assert.AreEqual("Dresden", address.City); + Assert.AreEqual("Germany", address.Country); + Assert.AreEqual("0011100", address.PostalCode); + Assert.AreEqual(10, address.HouseNumber); } - [Fact] + [TestMethod] public void RandomListPluginShallReturnDifferentValues() { Filler
addressFiller = new Filler
(); @@ -108,7 +108,7 @@ public void RandomListPluginShallReturnDifferentValues() var addresses = addressFiller.Create(1000); - Assert.True(addresses.Any(x => x.City == "Test2")); + Assert.IsTrue(addresses.Any(x => x.City == "Test2")); addressFiller = new Filler
(); @@ -116,7 +116,7 @@ public void RandomListPluginShallReturnDifferentValues() addresses = addressFiller.Create(1000); - Assert.True(addresses.All(x => x.City == "Test1")); + Assert.IsTrue(addresses.All(x => x.City == "Test1")); } diff --git a/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj b/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj new file mode 100644 index 0000000..41dafc5 --- /dev/null +++ b/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj @@ -0,0 +1,58 @@ + + + + netcoreapp1.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.xproj b/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.xproj deleted file mode 100644 index 53ff2df..0000000 --- a/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.xproj +++ /dev/null @@ -1,26 +0,0 @@ - - - - 14.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - f679fab4-ce29-48f8-b87c-3c89cdaf0d85 - ObjectFiller.Test - ..\artifacts\obj\$(MSBuildProjectName) - .\bin\ - - - 2.0 - - - - - - - - - - - \ No newline at end of file diff --git a/Tynamix.ObjectFiller.Test/project.json b/Tynamix.ObjectFiller.Test/project.json deleted file mode 100644 index b9ee428..0000000 --- a/Tynamix.ObjectFiller.Test/project.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "version": "1.0.0-*", - "description": "ObjectFiller.Test Class Library", - "authors": [ "Roman" ], - "tags": [ "" ], - "projectUrl": "", - "licenseUrl": "", - - "testRunner": "xunit", - "frameworks": { - "dnx451": { - "buildOptions": { "define": [ "NET4X" ] } - } - }, - - "dependencies": { - "xunit": "2.2.0-beta4-build3444", - "dotnet-test-xunit": "2.2.0-preview2-build1029", - "System.Text.RegularExpressions": "4.0.11-beta-23516", - "Tynamix.ObjectFiller": "1.5.1-*" - } -} diff --git a/Tynamix.ObjectFiller.Test/project.lock.json b/Tynamix.ObjectFiller.Test/project.lock.json deleted file mode 100644 index 7342c8c..0000000 --- a/Tynamix.ObjectFiller.Test/project.lock.json +++ /dev/null @@ -1,1093 +0,0 @@ -{ - "locked": false, - "version": 2, - "targets": { - "DNX,Version=v4.5.1": { - "dotnet-test-xunit/2.2.0-preview2-build1029": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.Testing.Abstractions": "1.0.0-preview2-003121", - "Microsoft.NETCore.Platforms": "1.0.1", - "xunit.runner.reporters": "2.2.0-beta2-build3300" - }, - "frameworkAssemblies": [ - "System.Threading.Tasks" - ], - "compile": { - "lib/net451/dotnet-test-xunit.exe": {} - }, - "runtime": { - "lib/net451/dotnet-test-xunit.exe": {} - }, - "runtimeTargets": { - "runtimes/unix-x64/lib/net451/dotnet-test-xunit.exe": { - "assetType": "runtime", - "rid": "unix-x64" - }, - "runtimes/win7-x64/lib/net451/dotnet-test-xunit.exe": { - "assetType": "runtime", - "rid": "win7-x64" - }, - "runtimes/win7-x86/lib/net451/dotnet-test-xunit.exe": { - "assetType": "runtime", - "rid": "win7-x86" - } - } - }, - "Microsoft.DiaSymReader/1.0.8": { - "type": "package", - "dependencies": { - "System.Diagnostics.Debug": "4.0.11", - "System.Runtime": "4.1.0", - "System.Runtime.InteropServices": "4.1.0" - }, - "compile": { - "lib/net20/Microsoft.DiaSymReader.dll": {} - }, - "runtime": { - "lib/net20/Microsoft.DiaSymReader.dll": {} - } - }, - "Microsoft.DiaSymReader.Native/1.4.0-rc2": { - "type": "package", - "runtimeTargets": { - "runtimes/win-x64/native/Microsoft.DiaSymReader.Native.amd64.dll": { - "assetType": "native", - "rid": "win-x64" - }, - "runtimes/win-x86/native/Microsoft.DiaSymReader.Native.x86.dll": { - "assetType": "native", - "rid": "win-x86" - }, - "runtimes/win/native/Microsoft.DiaSymReader.Native.amd64.dll": { - "assetType": "native", - "rid": "win" - }, - "runtimes/win/native/Microsoft.DiaSymReader.Native.arm.dll": { - "assetType": "native", - "rid": "win" - }, - "runtimes/win/native/Microsoft.DiaSymReader.Native.x86.dll": { - "assetType": "native", - "rid": "win" - }, - "runtimes/win8-arm/native/Microsoft.DiaSymReader.Native.arm.dll": { - "assetType": "native", - "rid": "win8-arm" - } - } - }, - "Microsoft.DotNet.InternalAbstractions/1.0.0": { - "type": "package", - "compile": { - "lib/net451/Microsoft.DotNet.InternalAbstractions.dll": {} - }, - "runtime": { - "lib/net451/Microsoft.DotNet.InternalAbstractions.dll": {} - } - }, - "Microsoft.DotNet.ProjectModel/1.0.0-rc3-003121": { - "type": "package", - "dependencies": { - "Microsoft.Extensions.DependencyModel": "1.0.0", - "Newtonsoft.Json": "9.0.1", - "NuGet.Packaging": "3.5.0-beta2-1484", - "NuGet.RuntimeModel": "3.5.0-beta2-1484", - "System.Reflection.Metadata": "1.3.0" - }, - "compile": { - "lib/net451/Microsoft.DotNet.ProjectModel.dll": {} - }, - "runtime": { - "lib/net451/Microsoft.DotNet.ProjectModel.dll": {} - } - }, - "Microsoft.Extensions.DependencyModel/1.0.0": { - "type": "package", - "dependencies": { - "Microsoft.DotNet.InternalAbstractions": "1.0.0", - "Newtonsoft.Json": "9.0.1" - }, - "compile": { - "lib/net451/Microsoft.Extensions.DependencyModel.dll": {} - }, - "runtime": { - "lib/net451/Microsoft.Extensions.DependencyModel.dll": {} - } - }, - "Microsoft.Extensions.Testing.Abstractions/1.0.0-preview2-003121": { - "type": "package", - "dependencies": { - "Microsoft.DiaSymReader": "1.0.8", - "Microsoft.DiaSymReader.Native": "1.4.0-rc2", - "Microsoft.DotNet.ProjectModel": "1.0.0-rc3-003121", - "Newtonsoft.Json": "9.0.1" - }, - "compile": { - "lib/net451/Microsoft.Extensions.Testing.Abstractions.dll": {} - }, - "runtime": { - "lib/net451/Microsoft.Extensions.Testing.Abstractions.dll": {} - } - }, - "Microsoft.NETCore.Platforms/1.0.1": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "Newtonsoft.Json/9.0.1": { - "type": "package", - "compile": { - "lib/net45/Newtonsoft.Json.dll": {} - }, - "runtime": { - "lib/net45/Newtonsoft.Json.dll": {} - } - }, - "NuGet.Common/3.5.0-beta2-1484": { - "type": "package", - "frameworkAssemblies": [ - "Microsoft.CSharp", - "System", - "System.Core", - "System.IO.Compression" - ], - "compile": { - "lib/net45/NuGet.Common.dll": {} - }, - "runtime": { - "lib/net45/NuGet.Common.dll": {} - } - }, - "NuGet.Frameworks/3.5.0-beta2-1484": { - "type": "package", - "compile": { - "lib/net45/NuGet.Frameworks.dll": {} - }, - "runtime": { - "lib/net45/NuGet.Frameworks.dll": {} - } - }, - "NuGet.Packaging/3.5.0-beta2-1484": { - "type": "package", - "dependencies": { - "NuGet.Common": "3.5.0-beta2-1484", - "NuGet.Packaging.Core": "3.5.0-beta2-1484" - }, - "frameworkAssemblies": [ - "System.IO.Compression", - "System.Xml", - "System.Xml.Linq" - ], - "compile": { - "lib/net45/NuGet.Packaging.dll": {} - }, - "runtime": { - "lib/net45/NuGet.Packaging.dll": {} - } - }, - "NuGet.Packaging.Core/3.5.0-beta2-1484": { - "type": "package", - "dependencies": { - "NuGet.Common": "3.5.0-beta2-1484", - "NuGet.Packaging.Core.Types": "3.5.0-beta2-1484" - }, - "frameworkAssemblies": [ - "System.IO.Compression", - "System.Xml", - "System.Xml.Linq" - ], - "compile": { - "lib/net45/NuGet.Packaging.Core.dll": {} - }, - "runtime": { - "lib/net45/NuGet.Packaging.Core.dll": {} - } - }, - "NuGet.Packaging.Core.Types/3.5.0-beta2-1484": { - "type": "package", - "dependencies": { - "NuGet.Frameworks": "3.5.0-beta2-1484", - "NuGet.Versioning": "3.5.0-beta2-1484" - }, - "compile": { - "lib/net45/NuGet.Packaging.Core.Types.dll": {} - }, - "runtime": { - "lib/net45/NuGet.Packaging.Core.Types.dll": {} - } - }, - "NuGet.RuntimeModel/3.5.0-beta2-1484": { - "type": "package", - "dependencies": { - "Newtonsoft.Json": "6.0.4", - "NuGet.Frameworks": "3.5.0-beta2-1484", - "NuGet.Versioning": "3.5.0-beta2-1484" - }, - "compile": { - "lib/net45/NuGet.RuntimeModel.dll": {} - }, - "runtime": { - "lib/net45/NuGet.RuntimeModel.dll": {} - } - }, - "NuGet.Versioning/3.5.0-beta2-1484": { - "type": "package", - "compile": { - "lib/net45/NuGet.Versioning.dll": {} - }, - "runtime": { - "lib/net45/NuGet.Versioning.dll": {} - } - }, - "System.Collections.Immutable/1.2.0": { - "type": "package", - "compile": { - "lib/portable-net45+win8+wp8+wpa81/System.Collections.Immutable.dll": {} - }, - "runtime": { - "lib/portable-net45+win8+wp8+wpa81/System.Collections.Immutable.dll": {} - } - }, - "System.Diagnostics.Debug/4.0.11": { - "type": "package", - "frameworkAssemblies": [ - "System" - ], - "compile": { - "ref/net45/_._": {} - }, - "runtime": { - "lib/net45/_._": {} - } - }, - "System.Reflection.Metadata/1.3.0": { - "type": "package", - "dependencies": { - "System.Collections.Immutable": "1.2.0" - }, - "compile": { - "lib/portable-net45+win8/System.Reflection.Metadata.dll": {} - }, - "runtime": { - "lib/portable-net45+win8/System.Reflection.Metadata.dll": {} - } - }, - "System.Runtime/4.1.0": { - "type": "package", - "frameworkAssemblies": [ - "System", - "System.ComponentModel.Composition", - "System.Core" - ], - "compile": { - "ref/net45/_._": {} - }, - "runtime": { - "lib/net45/_._": {} - } - }, - "System.Runtime.InteropServices/4.1.0": { - "type": "package", - "frameworkAssemblies": [ - "System", - "System.Core" - ], - "compile": { - "ref/net45/_._": {} - }, - "runtime": { - "lib/net45/_._": {} - } - }, - "System.Text.RegularExpressions/4.0.11-beta-23516": { - "type": "package", - "compile": { - "ref/net45/_._": {} - }, - "runtime": { - "lib/net45/_._": {} - } - }, - "xunit/2.2.0-beta4-build3444": { - "type": "package", - "dependencies": { - "xunit.assert": "[2.2.0-beta4-build3444]", - "xunit.core": "[2.2.0-beta4-build3444]" - } - }, - "xunit.abstractions/2.0.1": { - "type": "package", - "compile": { - "lib/net35/xunit.abstractions.dll": {} - }, - "runtime": { - "lib/net35/xunit.abstractions.dll": {} - } - }, - "xunit.assert/2.2.0-beta4-build3444": { - "type": "package", - "compile": { - "lib/netstandard1.0/xunit.assert.dll": {} - }, - "runtime": { - "lib/netstandard1.0/xunit.assert.dll": {} - } - }, - "xunit.core/2.2.0-beta4-build3444": { - "type": "package", - "dependencies": { - "xunit.extensibility.core": "[2.2.0-beta4-build3444]", - "xunit.extensibility.execution": "[2.2.0-beta4-build3444]" - } - }, - "xunit.extensibility.core/2.2.0-beta4-build3444": { - "type": "package", - "dependencies": { - "xunit.abstractions": "2.0.1" - }, - "compile": { - "lib/net45/xunit.core.dll": {} - }, - "runtime": { - "lib/net45/xunit.core.dll": {} - } - }, - "xunit.extensibility.execution/2.2.0-beta4-build3444": { - "type": "package", - "dependencies": { - "xunit.extensibility.core": "[2.2.0-beta4-build3444]" - }, - "compile": { - "lib/net45/xunit.execution.desktop.dll": {} - }, - "runtime": { - "lib/net45/xunit.execution.desktop.dll": {} - } - }, - "xunit.runner.reporters/2.2.0-beta2-build3300": { - "type": "package", - "dependencies": { - "xunit.runner.utility": "[2.2.0-beta2-build3300]" - }, - "compile": { - "lib/net45/xunit.runner.reporters.desktop.dll": {} - }, - "runtime": { - "lib/net45/xunit.runner.reporters.desktop.dll": {} - } - }, - "xunit.runner.utility/2.2.0-beta2-build3300": { - "type": "package", - "dependencies": { - "xunit.abstractions": "2.0.1-rc2" - }, - "compile": { - "lib/net45/xunit.runner.utility.desktop.dll": {} - }, - "runtime": { - "lib/net45/xunit.runner.utility.desktop.dll": {} - } - }, - "Tynamix.ObjectFiller/1.5.1": { - "type": "project", - "framework": ".NETFramework,Version=v4.5", - "compile": { - "net45/Tynamix.ObjectFiller.dll": {} - }, - "runtime": { - "net45/Tynamix.ObjectFiller.dll": {} - } - } - } - }, - "libraries": { - "dotnet-test-xunit/2.2.0-preview2-build1029": { - "sha512": "mPl4HHGcXsE4ljw3sHCOUvlyhXHDpfFO6qz0HbTQrhrFT8Tgm/HFLfz6TpMXUfch7rRL23kR8i0yjQPYdsl6EQ==", - "type": "package", - "path": "dotnet-test-xunit/2.2.0-preview2-build1029", - "files": [ - "dotnet-test-xunit.2.2.0-preview2-build1029.nupkg.sha512", - "dotnet-test-xunit.nuspec", - "lib/net451/dotnet-test-xunit.exe", - "lib/netcoreapp1.0/dotnet-test-xunit.dll", - "lib/netcoreapp1.0/dotnet-test-xunit.runtimeconfig.json", - "runtimes/unix-x64/lib/net451/dotnet-test-xunit.exe", - "runtimes/win7-x64/lib/net451/dotnet-test-xunit.exe", - "runtimes/win7-x86/lib/net451/dotnet-test-xunit.exe" - ] - }, - "Microsoft.DiaSymReader/1.0.8": { - "sha512": "HAhTmRgU+nnDVYxMZFAS1iwqg6CudbsSMZfSY9UJj4AJO4L69xZCtTOPKC5rW8+egNBWjDb0iBZV4ZdNI6dZnA==", - "type": "package", - "path": "Microsoft.DiaSymReader/1.0.8", - "files": [ - "Microsoft.DiaSymReader.1.0.8.nupkg.sha512", - "Microsoft.DiaSymReader.nuspec", - "lib/net20/Microsoft.DiaSymReader.dll", - "lib/net20/Microsoft.DiaSymReader.xml", - "lib/netstandard1.1/Microsoft.DiaSymReader.dll", - "lib/netstandard1.1/Microsoft.DiaSymReader.xml", - "lib/portable-net45+win8/Microsoft.DiaSymReader.dll", - "lib/portable-net45+win8/Microsoft.DiaSymReader.xml" - ] - }, - "Microsoft.DiaSymReader.Native/1.4.0-rc2": { - "sha512": "KIQOG+U6btTHL5KkXYofMpyCzVx+6EcDPS9GBRGGhlrTjJqcqAM6a6a0D0Dur/HPnAdmGLtSHVjCDZijGJFCAA==", - "type": "package", - "path": "Microsoft.DiaSymReader.Native/1.4.0-rc2", - "files": [ - "Microsoft.DiaSymReader.Native.1.4.0-rc2.nupkg.sha512", - "Microsoft.DiaSymReader.Native.nuspec", - "build/Microsoft.DiaSymReader.Native.props", - "runtimes/win-x64/native/Microsoft.DiaSymReader.Native.amd64.dll", - "runtimes/win-x86/native/Microsoft.DiaSymReader.Native.x86.dll", - "runtimes/win/native/Microsoft.DiaSymReader.Native.amd64.dll", - "runtimes/win/native/Microsoft.DiaSymReader.Native.arm.dll", - "runtimes/win/native/Microsoft.DiaSymReader.Native.x86.dll", - "runtimes/win8-arm/native/Microsoft.DiaSymReader.Native.arm.dll" - ] - }, - "Microsoft.DotNet.InternalAbstractions/1.0.0": { - "sha512": "AAguUq7YyKk3yDWPoWA8DrLZvURxB/LrDdTn1h5lmPeznkFUpfC3p459w5mQYQE0qpquf/CkSQZ0etiV5vRHFA==", - "type": "package", - "path": "Microsoft.DotNet.InternalAbstractions/1.0.0", - "files": [ - "Microsoft.DotNet.InternalAbstractions.1.0.0.nupkg.sha512", - "Microsoft.DotNet.InternalAbstractions.nuspec", - "lib/net451/Microsoft.DotNet.InternalAbstractions.dll", - "lib/netstandard1.3/Microsoft.DotNet.InternalAbstractions.dll" - ] - }, - "Microsoft.DotNet.ProjectModel/1.0.0-rc3-003121": { - "sha512": "wnWw5KsKinG2wWxdoQIJXZlMFvPNhL7WmIyW9q6xrZFUi/uld5PC3ksq2QDZepF148FUjCIyTP+TnRwU3RJqUg==", - "type": "package", - "path": "Microsoft.DotNet.ProjectModel/1.0.0-rc3-003121", - "files": [ - "Microsoft.DotNet.ProjectModel.1.0.0-rc3-003121.nupkg.sha512", - "Microsoft.DotNet.ProjectModel.nuspec", - "lib/net451/Microsoft.DotNet.ProjectModel.dll", - "lib/netstandard1.6/Microsoft.DotNet.ProjectModel.dll" - ] - }, - "Microsoft.Extensions.DependencyModel/1.0.0": { - "sha512": "n55Y2T4qMgCNMrJaqAN+nlG2EH4XL+e9uxIg4vdFsQeF+L8UKxRdD3C35Bt+xk3vO3Zwp3g+6KFq2VPH2COSmg==", - "type": "package", - "path": "Microsoft.Extensions.DependencyModel/1.0.0", - "files": [ - "Microsoft.Extensions.DependencyModel.1.0.0.nupkg.sha512", - "Microsoft.Extensions.DependencyModel.nuspec", - "lib/net451/Microsoft.Extensions.DependencyModel.dll", - "lib/netstandard1.6/Microsoft.Extensions.DependencyModel.dll" - ] - }, - "Microsoft.Extensions.Testing.Abstractions/1.0.0-preview2-003121": { - "sha512": "q3Uq07d6LbYr0NiX5Dz9GCbXJv4vkmSbUvFEmov3Vo4prZWjhFzF+byk2tWAEEqtZ6ereMYXBUt99wCTtANk6Q==", - "type": "package", - "path": "Microsoft.Extensions.Testing.Abstractions/1.0.0-preview2-003121", - "files": [ - "Microsoft.Extensions.Testing.Abstractions.1.0.0-preview2-003121.nupkg.sha512", - "Microsoft.Extensions.Testing.Abstractions.nuspec", - "lib/net451/Microsoft.Extensions.Testing.Abstractions.dll", - "lib/netstandard1.6/Microsoft.Extensions.Testing.Abstractions.dll" - ] - }, - "Microsoft.NETCore.Platforms/1.0.1": { - "sha512": "2G6OjjJzwBfNOO8myRV/nFrbTw5iA+DEm0N+qUqhrOmaVtn4pC77h38I1jsXGw5VH55+dPfQsqHD0We9sCl9FQ==", - "type": "package", - "path": "Microsoft.NETCore.Platforms/1.0.1", - "files": [ - "Microsoft.NETCore.Platforms.1.0.1.nupkg.sha512", - "Microsoft.NETCore.Platforms.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "runtime.json" - ] - }, - "Newtonsoft.Json/9.0.1": { - "sha512": "U82mHQSKaIk+lpSVCbWYKNavmNH1i5xrExDEquU1i6I5pV6UMOqRnJRSlKO3cMPfcpp0RgDY+8jUXHdQ4IfXvw==", - "type": "package", - "path": "Newtonsoft.Json/9.0.1", - "files": [ - "Newtonsoft.Json.9.0.1.nupkg.sha512", - "Newtonsoft.Json.nuspec", - "lib/net20/Newtonsoft.Json.dll", - "lib/net20/Newtonsoft.Json.xml", - "lib/net35/Newtonsoft.Json.dll", - "lib/net35/Newtonsoft.Json.xml", - "lib/net40/Newtonsoft.Json.dll", - "lib/net40/Newtonsoft.Json.xml", - "lib/net45/Newtonsoft.Json.dll", - "lib/net45/Newtonsoft.Json.xml", - "lib/netstandard1.0/Newtonsoft.Json.dll", - "lib/netstandard1.0/Newtonsoft.Json.xml", - "lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll", - "lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.xml", - "lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.dll", - "lib/portable-net45+wp80+win8+wpa81/Newtonsoft.Json.xml", - "tools/install.ps1" - ] - }, - "NuGet.Common/3.5.0-beta2-1484": { - "sha512": "rLBmcZOPVF7Mne/LumDNACZZyI5B67hjylt+Z/WSEUQ/IXE9nLv8IVL0+T9xljIaSSQCjO8cOtmJ6ztqrsQKcQ==", - "type": "package", - "path": "NuGet.Common/3.5.0-beta2-1484", - "files": [ - "NuGet.Common.3.5.0-beta2-1484.nupkg.sha512", - "NuGet.Common.nuspec", - "lib/net45/NuGet.Common.dll", - "lib/net45/NuGet.Common.xml", - "lib/netstandard1.3/NuGet.Common.dll", - "lib/netstandard1.3/NuGet.Common.xml" - ] - }, - "NuGet.Frameworks/3.5.0-beta2-1484": { - "sha512": "AZoX0c05qgSfx0IOGTbLXa2fD7eM2WUqKP3osMMvSxK+tOGmctHuFlvjXxMHBv9yg0/13KdH0osV/zI7+SjzOA==", - "type": "package", - "path": "NuGet.Frameworks/3.5.0-beta2-1484", - "files": [ - "NuGet.Frameworks.3.5.0-beta2-1484.nupkg.sha512", - "NuGet.Frameworks.nuspec", - "lib/net40-client/NuGet.Frameworks.dll", - "lib/net40-client/NuGet.Frameworks.xml", - "lib/net45/NuGet.Frameworks.dll", - "lib/net45/NuGet.Frameworks.xml", - "lib/netstandard1.3/NuGet.Frameworks.dll", - "lib/netstandard1.3/NuGet.Frameworks.xml" - ] - }, - "NuGet.Packaging/3.5.0-beta2-1484": { - "sha512": "/+7d3vvCel4KhJo6AyOneg07fbAkUsy/ORgIaxW3nNdJubCXSrAdg1wfQpwzBygmErjrPcdYzzk2y2Sc6m7hwQ==", - "type": "package", - "path": "NuGet.Packaging/3.5.0-beta2-1484", - "files": [ - "NuGet.Packaging.3.5.0-beta2-1484.nupkg.sha512", - "NuGet.Packaging.nuspec", - "lib/net45/NuGet.Packaging.dll", - "lib/net45/NuGet.Packaging.xml", - "lib/netstandard1.3/NuGet.Packaging.dll", - "lib/netstandard1.3/NuGet.Packaging.xml" - ] - }, - "NuGet.Packaging.Core/3.5.0-beta2-1484": { - "sha512": "Lsz2lgYH0mdOvuL8C3G4XLm9EaAheBOqrgLgnBNxCeLGLU+n+Zu8Lt6K1bpzgkeKyTyAhJdWbv/3lS4w7s04gw==", - "type": "package", - "path": "NuGet.Packaging.Core/3.5.0-beta2-1484", - "files": [ - "NuGet.Packaging.Core.3.5.0-beta2-1484.nupkg.sha512", - "NuGet.Packaging.Core.nuspec", - "lib/net45/NuGet.Packaging.Core.dll", - "lib/net45/NuGet.Packaging.Core.xml", - "lib/netstandard1.3/NuGet.Packaging.Core.dll", - "lib/netstandard1.3/NuGet.Packaging.Core.xml" - ] - }, - "NuGet.Packaging.Core.Types/3.5.0-beta2-1484": { - "sha512": "4mEXZBoe/RKTDVQGwdrl/f5gqolU2d1JWjpbGdQv5EG/xQCC8IQ8FTNYzk0+ydV/vuRM1yaNe+6UQ90nGE+1kQ==", - "type": "package", - "path": "NuGet.Packaging.Core.Types/3.5.0-beta2-1484", - "files": [ - "NuGet.Packaging.Core.Types.3.5.0-beta2-1484.nupkg.sha512", - "NuGet.Packaging.Core.Types.nuspec", - "lib/net45/NuGet.Packaging.Core.Types.dll", - "lib/net45/NuGet.Packaging.Core.Types.xml", - "lib/netstandard1.3/NuGet.Packaging.Core.Types.dll", - "lib/netstandard1.3/NuGet.Packaging.Core.Types.xml" - ] - }, - "NuGet.RuntimeModel/3.5.0-beta2-1484": { - "sha512": "vg29WbKcExD9AJrKMr7NB9pnp+0MTAcDHB6gFHCqRynSo6jgjC8q+ZPAlxC115rQiO8fqzOEP59Q8hx20anUtA==", - "type": "package", - "path": "NuGet.RuntimeModel/3.5.0-beta2-1484", - "files": [ - "NuGet.RuntimeModel.3.5.0-beta2-1484.nupkg.sha512", - "NuGet.RuntimeModel.nuspec", - "lib/net45/NuGet.RuntimeModel.dll", - "lib/net45/NuGet.RuntimeModel.xml", - "lib/netstandard1.3/NuGet.RuntimeModel.dll", - "lib/netstandard1.3/NuGet.RuntimeModel.xml" - ] - }, - "NuGet.Versioning/3.5.0-beta2-1484": { - "sha512": "Stok+SI5lWxOkTgZZM7jT4xuAZogm5+j85mKJeHSXb8o0OAbB+qDX9jkdM2wIEnjoR8R29J0nQYwk2Kl2lWFpA==", - "type": "package", - "path": "NuGet.Versioning/3.5.0-beta2-1484", - "files": [ - "NuGet.Versioning.3.5.0-beta2-1484.nupkg.sha512", - "NuGet.Versioning.nuspec", - "lib/net45/NuGet.Versioning.dll", - "lib/net45/NuGet.Versioning.xml", - "lib/netstandard1.0/NuGet.Versioning.dll", - "lib/netstandard1.0/NuGet.Versioning.xml" - ] - }, - "System.Collections.Immutable/1.2.0": { - "sha512": "Cma8cBW6di16ZLibL8LYQ+cLjGzoKxpOTu/faZfDcx94ZjAGq6Nv5RO7+T1YZXqEXTZP9rt1wLVEONVpURtUqw==", - "type": "package", - "path": "System.Collections.Immutable/1.2.0", - "files": [ - "System.Collections.Immutable.1.2.0.nupkg.sha512", - "System.Collections.Immutable.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/System.Collections.Immutable.dll", - "lib/netstandard1.0/System.Collections.Immutable.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Collections.Immutable.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Collections.Immutable.xml" - ] - }, - "System.Diagnostics.Debug/4.0.11": { - "sha512": "w5U95fVKHY4G8ASs/K5iK3J5LY+/dLFd4vKejsnI/ZhBsWS9hQakfx3Zr7lRWKg4tAw9r4iktyvsTagWkqYCiw==", - "type": "package", - "path": "System.Diagnostics.Debug/4.0.11", - "files": [ - "System.Diagnostics.Debug.4.0.11.nupkg.sha512", - "System.Diagnostics.Debug.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Diagnostics.Debug.dll", - "ref/netcore50/System.Diagnostics.Debug.xml", - "ref/netcore50/de/System.Diagnostics.Debug.xml", - "ref/netcore50/es/System.Diagnostics.Debug.xml", - "ref/netcore50/fr/System.Diagnostics.Debug.xml", - "ref/netcore50/it/System.Diagnostics.Debug.xml", - "ref/netcore50/ja/System.Diagnostics.Debug.xml", - "ref/netcore50/ko/System.Diagnostics.Debug.xml", - "ref/netcore50/ru/System.Diagnostics.Debug.xml", - "ref/netcore50/zh-hans/System.Diagnostics.Debug.xml", - "ref/netcore50/zh-hant/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/System.Diagnostics.Debug.dll", - "ref/netstandard1.0/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/de/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/es/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/fr/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/it/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/ja/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/ko/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/ru/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/zh-hans/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/zh-hant/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/System.Diagnostics.Debug.dll", - "ref/netstandard1.3/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/de/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/es/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/fr/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/it/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/ja/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/ko/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/ru/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/zh-hans/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/zh-hant/System.Diagnostics.Debug.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Reflection.Metadata/1.3.0": { - "sha512": "jMSCxA4LSyKBGRDm/WtfkO03FkcgRzHxwvQRib1bm2GZ8ifKM1MX1al6breGCEQK280mdl9uQS7JNPXRYk90jw==", - "type": "package", - "path": "System.Reflection.Metadata/1.3.0", - "files": [ - "System.Reflection.Metadata.1.3.0.nupkg.sha512", - "System.Reflection.Metadata.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.1/System.Reflection.Metadata.dll", - "lib/netstandard1.1/System.Reflection.Metadata.xml", - "lib/portable-net45+win8/System.Reflection.Metadata.dll", - "lib/portable-net45+win8/System.Reflection.Metadata.xml" - ] - }, - "System.Runtime/4.1.0": { - "sha512": "v6c/4Yaa9uWsq+JMhnOFewrYkgdNHNG2eMKuNqRn8P733rNXeRCGvV5FkkjBXn2dbVkPXOsO0xjsEeM1q2zC0g==", - "type": "package", - "path": "System.Runtime/4.1.0", - "files": [ - "System.Runtime.4.1.0.nupkg.sha512", - "System.Runtime.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.Runtime.dll", - "lib/portable-net45+win8+wp80+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.Runtime.dll", - "ref/netcore50/System.Runtime.dll", - "ref/netcore50/System.Runtime.xml", - "ref/netcore50/de/System.Runtime.xml", - "ref/netcore50/es/System.Runtime.xml", - "ref/netcore50/fr/System.Runtime.xml", - "ref/netcore50/it/System.Runtime.xml", - "ref/netcore50/ja/System.Runtime.xml", - "ref/netcore50/ko/System.Runtime.xml", - "ref/netcore50/ru/System.Runtime.xml", - "ref/netcore50/zh-hans/System.Runtime.xml", - "ref/netcore50/zh-hant/System.Runtime.xml", - "ref/netstandard1.0/System.Runtime.dll", - "ref/netstandard1.0/System.Runtime.xml", - "ref/netstandard1.0/de/System.Runtime.xml", - "ref/netstandard1.0/es/System.Runtime.xml", - "ref/netstandard1.0/fr/System.Runtime.xml", - "ref/netstandard1.0/it/System.Runtime.xml", - "ref/netstandard1.0/ja/System.Runtime.xml", - "ref/netstandard1.0/ko/System.Runtime.xml", - "ref/netstandard1.0/ru/System.Runtime.xml", - "ref/netstandard1.0/zh-hans/System.Runtime.xml", - "ref/netstandard1.0/zh-hant/System.Runtime.xml", - "ref/netstandard1.2/System.Runtime.dll", - "ref/netstandard1.2/System.Runtime.xml", - "ref/netstandard1.2/de/System.Runtime.xml", - "ref/netstandard1.2/es/System.Runtime.xml", - "ref/netstandard1.2/fr/System.Runtime.xml", - "ref/netstandard1.2/it/System.Runtime.xml", - "ref/netstandard1.2/ja/System.Runtime.xml", - "ref/netstandard1.2/ko/System.Runtime.xml", - "ref/netstandard1.2/ru/System.Runtime.xml", - "ref/netstandard1.2/zh-hans/System.Runtime.xml", - "ref/netstandard1.2/zh-hant/System.Runtime.xml", - "ref/netstandard1.3/System.Runtime.dll", - "ref/netstandard1.3/System.Runtime.xml", - "ref/netstandard1.3/de/System.Runtime.xml", - "ref/netstandard1.3/es/System.Runtime.xml", - "ref/netstandard1.3/fr/System.Runtime.xml", - "ref/netstandard1.3/it/System.Runtime.xml", - "ref/netstandard1.3/ja/System.Runtime.xml", - "ref/netstandard1.3/ko/System.Runtime.xml", - "ref/netstandard1.3/ru/System.Runtime.xml", - "ref/netstandard1.3/zh-hans/System.Runtime.xml", - "ref/netstandard1.3/zh-hant/System.Runtime.xml", - "ref/netstandard1.5/System.Runtime.dll", - "ref/netstandard1.5/System.Runtime.xml", - "ref/netstandard1.5/de/System.Runtime.xml", - "ref/netstandard1.5/es/System.Runtime.xml", - "ref/netstandard1.5/fr/System.Runtime.xml", - "ref/netstandard1.5/it/System.Runtime.xml", - "ref/netstandard1.5/ja/System.Runtime.xml", - "ref/netstandard1.5/ko/System.Runtime.xml", - "ref/netstandard1.5/ru/System.Runtime.xml", - "ref/netstandard1.5/zh-hans/System.Runtime.xml", - "ref/netstandard1.5/zh-hant/System.Runtime.xml", - "ref/portable-net45+win8+wp80+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Runtime.InteropServices/4.1.0": { - "sha512": "16eu3kjHS633yYdkjwShDHZLRNMKVi/s0bY8ODiqJ2RfMhDMAwxZaUaWVnZ2P71kr/or+X9o/xFWtNqz8ivieQ==", - "type": "package", - "path": "System.Runtime.InteropServices/4.1.0", - "files": [ - "System.Runtime.InteropServices.4.1.0.nupkg.sha512", - "System.Runtime.InteropServices.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.Runtime.InteropServices.dll", - "lib/portable-net45+win8+wpa81/_._", - "lib/win8/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.Runtime.InteropServices.dll", - "ref/netcore50/System.Runtime.InteropServices.dll", - "ref/netcore50/System.Runtime.InteropServices.xml", - "ref/netcore50/de/System.Runtime.InteropServices.xml", - "ref/netcore50/es/System.Runtime.InteropServices.xml", - "ref/netcore50/fr/System.Runtime.InteropServices.xml", - "ref/netcore50/it/System.Runtime.InteropServices.xml", - "ref/netcore50/ja/System.Runtime.InteropServices.xml", - "ref/netcore50/ko/System.Runtime.InteropServices.xml", - "ref/netcore50/ru/System.Runtime.InteropServices.xml", - "ref/netcore50/zh-hans/System.Runtime.InteropServices.xml", - "ref/netcore50/zh-hant/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/System.Runtime.InteropServices.dll", - "ref/netstandard1.1/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/de/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/es/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/fr/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/it/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/ja/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/ko/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/ru/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/zh-hans/System.Runtime.InteropServices.xml", - "ref/netstandard1.1/zh-hant/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/System.Runtime.InteropServices.dll", - "ref/netstandard1.2/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/de/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/es/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/fr/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/it/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/ja/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/ko/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/ru/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/zh-hans/System.Runtime.InteropServices.xml", - "ref/netstandard1.2/zh-hant/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/System.Runtime.InteropServices.dll", - "ref/netstandard1.3/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/de/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/es/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/fr/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/it/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/ja/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/ko/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/ru/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/zh-hans/System.Runtime.InteropServices.xml", - "ref/netstandard1.3/zh-hant/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/System.Runtime.InteropServices.dll", - "ref/netstandard1.5/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/de/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/es/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/fr/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/it/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/ja/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/ko/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/ru/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/zh-hans/System.Runtime.InteropServices.xml", - "ref/netstandard1.5/zh-hant/System.Runtime.InteropServices.xml", - "ref/portable-net45+win8+wpa81/_._", - "ref/win8/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Text.RegularExpressions/4.0.11-beta-23516": { - "sha512": "ZtarWBvDF7R6pRqo1jxo+uV46Rzxht8rRTe+qSHrr6SLLiZRL4RMncU+mDEn81wF+WL+v81ug20lnssHNHlV+Q==", - "type": "package", - "path": "System.Text.RegularExpressions/4.0.11-beta-23516", - "files": [ - "System.Text.RegularExpressions.4.0.11-beta-23516.nupkg.sha512", - "System.Text.RegularExpressions.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet5.4/System.Text.RegularExpressions.dll", - "lib/net45/_._", - "lib/netcore50/System.Text.RegularExpressions.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet5.1/System.Text.RegularExpressions.dll", - "ref/dotnet5.1/System.Text.RegularExpressions.xml", - "ref/dotnet5.1/de/System.Text.RegularExpressions.xml", - "ref/dotnet5.1/es/System.Text.RegularExpressions.xml", - "ref/dotnet5.1/fr/System.Text.RegularExpressions.xml", - "ref/dotnet5.1/it/System.Text.RegularExpressions.xml", - "ref/dotnet5.1/ja/System.Text.RegularExpressions.xml", - "ref/dotnet5.1/ko/System.Text.RegularExpressions.xml", - "ref/dotnet5.1/ru/System.Text.RegularExpressions.xml", - "ref/dotnet5.1/zh-hans/System.Text.RegularExpressions.xml", - "ref/dotnet5.1/zh-hant/System.Text.RegularExpressions.xml", - "ref/dotnet5.4/System.Text.RegularExpressions.dll", - "ref/dotnet5.4/System.Text.RegularExpressions.xml", - "ref/dotnet5.4/de/System.Text.RegularExpressions.xml", - "ref/dotnet5.4/es/System.Text.RegularExpressions.xml", - "ref/dotnet5.4/fr/System.Text.RegularExpressions.xml", - "ref/dotnet5.4/it/System.Text.RegularExpressions.xml", - "ref/dotnet5.4/ja/System.Text.RegularExpressions.xml", - "ref/dotnet5.4/ko/System.Text.RegularExpressions.xml", - "ref/dotnet5.4/ru/System.Text.RegularExpressions.xml", - "ref/dotnet5.4/zh-hans/System.Text.RegularExpressions.xml", - "ref/dotnet5.4/zh-hant/System.Text.RegularExpressions.xml", - "ref/net45/_._", - "ref/netcore50/System.Text.RegularExpressions.dll", - "ref/netcore50/System.Text.RegularExpressions.xml", - "ref/netcore50/de/System.Text.RegularExpressions.xml", - "ref/netcore50/es/System.Text.RegularExpressions.xml", - "ref/netcore50/fr/System.Text.RegularExpressions.xml", - "ref/netcore50/it/System.Text.RegularExpressions.xml", - "ref/netcore50/ja/System.Text.RegularExpressions.xml", - "ref/netcore50/ko/System.Text.RegularExpressions.xml", - "ref/netcore50/ru/System.Text.RegularExpressions.xml", - "ref/netcore50/zh-hans/System.Text.RegularExpressions.xml", - "ref/netcore50/zh-hant/System.Text.RegularExpressions.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "xunit/2.2.0-beta4-build3444": { - "sha512": "Gd981l3FGdxwnnOrrj495BMy/zb07ZITSTnLvryaxnqTsqNXRH12fqJ4aliqc2nCFBZBstMYzLznbBy/53QEZA==", - "type": "package", - "path": "xunit/2.2.0-beta4-build3444", - "files": [ - "xunit.2.2.0-beta4-build3444.nupkg.sha512", - "xunit.nuspec" - ] - }, - "xunit.abstractions/2.0.1": { - "sha512": "bDm/zdG5rnRDsobKuKwrvL4HccBdC0uvT12be6fG12P3d1U7u9Wkvfoq/PM2GeyIeb0Dtcmm/7k2oaawiqQ2Dg==", - "type": "package", - "path": "xunit.abstractions/2.0.1", - "files": [ - "lib/net35/xunit.abstractions.dll", - "lib/net35/xunit.abstractions.xml", - "lib/netstandard1.0/xunit.abstractions.dll", - "lib/netstandard1.0/xunit.abstractions.xml", - "xunit.abstractions.2.0.1.nupkg.sha512", - "xunit.abstractions.nuspec" - ] - }, - "xunit.assert/2.2.0-beta4-build3444": { - "sha512": "ofTB1EEXB4A5hFbmvJHnjNGeazsyOsd8C2zfh/XJrCPKjdXXq/9TSD8xJn5JFUpO6PdArlS4bNAalhhijepjsw==", - "type": "package", - "path": "xunit.assert/2.2.0-beta4-build3444", - "files": [ - "lib/netstandard1.0/xunit.assert.dll", - "lib/netstandard1.0/xunit.assert.pdb", - "lib/netstandard1.0/xunit.assert.xml", - "xunit.assert.2.2.0-beta4-build3444.nupkg.sha512", - "xunit.assert.nuspec" - ] - }, - "xunit.core/2.2.0-beta4-build3444": { - "sha512": "yGoZJbcxG2997f6Fy+2RNTRnW0Gz0lmFUUNLoa9RaXyQz/K/OsHXbSrOGMs7cxnXDfXMwjjrvDS1U4P34sOX1w==", - "type": "package", - "path": "xunit.core/2.2.0-beta4-build3444", - "files": [ - "build/_desktop/xunit.execution.desktop.dll", - "build/netstandard1.0/_._", - "build/uap10.0/xunit.core.props", - "build/win81/xunit.core.props", - "build/wpa81/xunit.core.props", - "xunit.core.2.2.0-beta4-build3444.nupkg.sha512", - "xunit.core.nuspec" - ] - }, - "xunit.extensibility.core/2.2.0-beta4-build3444": { - "sha512": "ISdMbAOe4SnsHMLejyZFWvTA/ZvrOxO/fo6GxCGRT6NufIUwa5K8Yinsav8pT2+c+6iWN9uNgsqnW3iR4takYg==", - "type": "package", - "path": "xunit.extensibility.core/2.2.0-beta4-build3444", - "files": [ - "lib/net45/xunit.core.dll", - "lib/net45/xunit.core.dll.tdnet", - "lib/net45/xunit.core.pdb", - "lib/net45/xunit.core.xml", - "lib/net45/xunit.runner.tdnet.dll", - "lib/net45/xunit.runner.utility.desktop.dll", - "lib/netstandard1.0/xunit.core.dll", - "lib/netstandard1.0/xunit.core.dll.tdnet", - "lib/netstandard1.0/xunit.core.pdb", - "lib/netstandard1.0/xunit.core.xml", - "lib/netstandard1.0/xunit.runner.tdnet.dll", - "lib/netstandard1.0/xunit.runner.utility.desktop.dll", - "xunit.extensibility.core.2.2.0-beta4-build3444.nupkg.sha512", - "xunit.extensibility.core.nuspec" - ] - }, - "xunit.extensibility.execution/2.2.0-beta4-build3444": { - "sha512": "H4elREzKuTxHF1Nha4TXdI3DI/l2IMiIeRa9BTjwpEXkJ6G1kO1QHBQ6PQvotjk727d7zctODU1BgBNlfpMi4g==", - "type": "package", - "path": "xunit.extensibility.execution/2.2.0-beta4-build3444", - "files": [ - "lib/net45/xunit.execution.desktop.dll", - "lib/net45/xunit.execution.desktop.pdb", - "lib/net45/xunit.execution.desktop.xml", - "lib/netstandard1.0/xunit.execution.dotnet.dll", - "lib/netstandard1.0/xunit.execution.dotnet.pdb", - "lib/netstandard1.0/xunit.execution.dotnet.xml", - "xunit.extensibility.execution.2.2.0-beta4-build3444.nupkg.sha512", - "xunit.extensibility.execution.nuspec" - ] - }, - "xunit.runner.reporters/2.2.0-beta2-build3300": { - "sha512": "1NqeT2IWfqk9/zBkHbf6SS1bokwu0Mvt70lQp8bJZpvQgi+SDAzuhEwWTcsjMblY2FK8BHDbjauu+IO2GhbhAA==", - "type": "package", - "path": "xunit.runner.reporters/2.2.0-beta2-build3300", - "files": [ - "lib/net45/xunit.runner.reporters.desktop.dll", - "lib/netstandard1.1/xunit.runner.reporters.dotnet.dll", - "xunit.runner.reporters.2.2.0-beta2-build3300.nupkg.sha512", - "xunit.runner.reporters.nuspec" - ] - }, - "xunit.runner.utility/2.2.0-beta2-build3300": { - "sha512": "lotqjLPg8NnjZHlRpj0Yj5TI3z/7hzK7+tb6R7qRAREDoH9P88EDCWJyy2xJh/R6PfbS9KYTaT/Z2ob9gx6PgQ==", - "type": "package", - "path": "xunit.runner.utility/2.2.0-beta2-build3300", - "files": [ - "lib/net35/xunit.runner.utility.desktop.dll", - "lib/net35/xunit.runner.utility.desktop.pdb", - "lib/net35/xunit.runner.utility.desktop.xml", - "lib/net45/xunit.runner.utility.desktop.dll", - "lib/net45/xunit.runner.utility.desktop.pdb", - "lib/net45/xunit.runner.utility.desktop.xml", - "lib/netstandard1.1/xunit.runner.utility.dotnet.dll", - "lib/netstandard1.1/xunit.runner.utility.dotnet.pdb", - "lib/netstandard1.1/xunit.runner.utility.dotnet.xml", - "xunit.runner.utility.2.2.0-beta2-build3300.nupkg.sha512", - "xunit.runner.utility.nuspec" - ] - }, - "Tynamix.ObjectFiller/1.5.1": { - "type": "project", - "path": "../Tynamix.ObjectFiller/project.json", - "msbuildProject": "../Tynamix.ObjectFiller/Tynamix.ObjectFiller.xproj" - } - }, - "projectFileDependencyGroups": { - "": [ - "System.Text.RegularExpressions >= 4.0.11-beta-23516", - "Tynamix.ObjectFiller >= 1.5.1-*", - "dotnet-test-xunit >= 2.2.0-preview2-build1029", - "xunit >= 2.2.0-beta4-build3444" - ], - "DNX,Version=v4.5.1": [] - }, - "tools": {}, - "projectFileToolGroups": {} -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/AddressFillingTest.cs b/Tynamix.ObjectFiller.TestBCK/AddressFillingTest.cs new file mode 100644 index 0000000..ec110e5 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/AddressFillingTest.cs @@ -0,0 +1,125 @@ +using Xunit; +using ObjectFiller.Test.TestPoco.Person; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + using System.Linq; + + + public class AddressFillingTest + { + [Fact] + public void FillAllAddressProperties() + { + Filler
addressFiller = new Filler
(); + Address a = addressFiller.Create(); + + Assert.NotNull(a.City); + Assert.NotNull(a.Country); + Assert.NotEqual(0, a.HouseNumber); + Assert.NotNull(a.PostalCode); + Assert.NotNull(a.Street); + } + + [Fact] + public void IgnoreCountry() + { + Filler
addressFiller = new Filler
(); + addressFiller.Setup() + .OnProperty(x => x.Country).IgnoreIt(); + Address a = addressFiller.Create(); + + Assert.NotNull(a.City); + Assert.Null(a.Country); + Assert.NotEqual(0, a.HouseNumber); + Assert.NotNull(a.PostalCode); + Assert.NotNull(a.Street); + } + + [Fact] + public void IgnoreCountryAndCity() + { + Filler
addressFiller = new Filler
(); + addressFiller.Setup() + .OnProperty(x => x.Country, x => x.City).IgnoreIt(); + Address a = addressFiller.Create(); + + Assert.Null(a.City); + Assert.Null(a.Country); + Assert.NotEqual(0, a.HouseNumber); + Assert.NotNull(a.PostalCode); + Assert.NotNull(a.Street); + } + + [Fact] + public void SetupCityPropertyWithConstantValue() + { + Filler
addressFiller = new Filler
(); + addressFiller.Setup() + .OnProperty(ad => ad.City).Use(() => "City"); + Address a = addressFiller.Create(); + + Assert.Equal("City", a.City); + Assert.NotNull(a.Country); + Assert.NotEqual(0, a.HouseNumber); + Assert.NotNull(a.PostalCode); + Assert.NotNull(a.Street); + } + + [Fact] + public void SetupCityAndCountryPropertyWithConstantValue() + { + Filler
addressFiller = new Filler
(); + addressFiller.Setup() + .OnProperty(ad => ad.City, ad => ad.Country).Use(() => "CityCountry"); + Address a = addressFiller.Create(); + + Assert.Equal("CityCountry", a.City); + Assert.NotNull(a.Country); + Assert.NotEqual(0, a.HouseNumber); + Assert.NotNull(a.PostalCode); + Assert.NotNull(a.Street); + } + + [Fact] + public void SetupTheAdressWithStaticValues() + { + Filler
addressFiller = new Filler
(); + addressFiller.Setup() + .OnType().Use(10) + .OnProperty(x => x.City).Use("Dresden") + .OnProperty(x => x.Country).Use("Germany") + .OnProperty(x => x.PostalCode).Use(() => "0011100"); + + var address = addressFiller.Create(); + Assert.Equal("Dresden", address.City); + Assert.Equal("Germany", address.Country); + Assert.Equal("0011100", address.PostalCode); + Assert.Equal(10, address.HouseNumber); + } + + [Fact] + public void RandomListPluginShallReturnDifferentValues() + { + Filler
addressFiller = new Filler
(); + + addressFiller.Setup().OnProperty(x => x.City).Use(new RandomListItem("Test1", "Test2")); + + var addresses = addressFiller.Create(1000); + + Assert.True(addresses.Any(x => x.City == "Test2")); + + addressFiller = new Filler
(); + + addressFiller.Setup().OnProperty(x => x.City).Use(new RandomListItem("Test1")); + + addresses = addressFiller.Create(1000); + + Assert.True(addresses.All(x => x.City == "Test1")); + + } + + + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug68HashsetCanNotBeCreated.cs b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug68HashsetCanNotBeCreated.cs new file mode 100644 index 0000000..d868d41 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug68HashsetCanNotBeCreated.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace ObjectFiller.Test.BugfixTests +{ + using Tynamix.ObjectFiller; + + using Xunit; + + public class Bug68HashsetCanNotBeCreated + { + [Fact] + public void AHashsetShouldBeGenerated() + { + Filler> filler = new Filler>(); + + var hashset = filler.Create(); + + Assert.NotNull(hashset); + Assert.True(hashset.Any()); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs new file mode 100644 index 0000000..520ca4e --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace ObjectFiller.Test.BugfixTests +{ + using Tynamix.ObjectFiller; + + using Xunit; + + public class Bug87ErrorWhenNameInParentIsSameAsParent + { + public class Parent + { + public int MakeTheError { get; set; } + + public Child Child { get; set; } + + } + + public class Child + { + public string MakeTheError { get; set; } + } + + [Fact] + public void ParentShallGetFilledWithourError() + { + Filler filler = new Filler(); + + var filledObject = filler.Create(); + Assert.NotNull(filledObject); + Assert.NotNull(filledObject.MakeTheError); + Assert.False(string.IsNullOrWhiteSpace(filledObject.Child.MakeTheError)); + } + } +} + diff --git a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs new file mode 100644 index 0000000..e21fa27 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace ObjectFiller.Test.BugfixTests +{ + using Tynamix.ObjectFiller; + + using Xunit; + + + public class Bug89FillTypesInheritsFromDictionary + { + public class EntityA + { + public string Name { get; set; } + public int ID { get; set; } + public EntityBList Bs { get; set; } + } + public class EntityB + { + public string Name { get; set; } + public Guid ID { get; set; } + } + public class EntityBList : Dictionary + { + public DateTime SomeDate { get; set; } + } + + [Fact] + public void ADerivedDictionaryShallGetFilledAllProperties() + { + Filler filler = new Filler(); + + var result = filler.Create(); + + Assert.NotNull(result.Bs); + Assert.InRange(result.Bs.SomeDate, DateTime.MinValue.AddSeconds(1), DateTime.MaxValue.AddSeconds(-1)); + Assert.True(result.Bs.Any()); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromList.cs b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromList.cs new file mode 100644 index 0000000..d22e1ee --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromList.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace ObjectFiller.Test.BugfixTests +{ + using Tynamix.ObjectFiller; + + using Xunit; + + + public class Bug89FillTypesInheritsFromList + { + public class EntityA + { + public string Name { get; set; } + public int ID { get; set; } + public EntityBList Bs { get; set; } + } + public class EntityB + { + public string Name { get; set; } + public Guid ID { get; set; } + } + public class EntityBList : List + { + public DateTime SomeDate { get; set; } + } + + [Fact] + public void ADerivedListShallGetFilledAllProperties() + { + Filler filler = new Filler(); + + var result = filler.Create(); + + Assert.NotNull(result.Bs); + Assert.InRange(result.Bs.SomeDate, DateTime.MinValue.AddSeconds(1), DateTime.MaxValue.AddSeconds(-1)); + Assert.True(result.Bs.Any()); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/CityNamesPluginTest.cs b/Tynamix.ObjectFiller.TestBCK/CityNamesPluginTest.cs new file mode 100644 index 0000000..f3caad6 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/CityNamesPluginTest.cs @@ -0,0 +1,19 @@ +namespace ObjectFiller.Test +{ + using Xunit; + + using Tynamix.ObjectFiller; + + + public class CityNamesPluginTest + { + [Fact] + public void RandomNameIsReturned() + { + var sut = new CityName(); + var value = sut.GetValue(); + + Assert.False(string.IsNullOrEmpty(value)); + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/CollectionizerTest.cs b/Tynamix.ObjectFiller.TestBCK/CollectionizerTest.cs new file mode 100644 index 0000000..4edca68 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/CollectionizerTest.cs @@ -0,0 +1,80 @@ +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using Tynamix.ObjectFiller; +using Xunit; + +namespace ObjectFiller.Test +{ + public class CollectionizerPoco + { + public IEnumerable MnemonicStrings { get; set; } + + public List IntRange { get; set; } + + public ArrayList ArrayList { get; set; } + } + + public class CollectionizerTest + { + [Fact] + public void TestCityNames() + { + var filler = new Filler(); + + filler.Setup() + .OnProperty(x => x.ArrayList) + .Use(new Collectionizer(new MnemonicString(1, 20, 25), 3, 10)); + + var arrayList = filler.Create(); + Assert.True(arrayList.ArrayList.Count >= 3 && arrayList.ArrayList.Count <= 10); + Assert.True(arrayList.ArrayList.ToArray().Cast().All(x => x.Length >= 20 && x.Length <= 25)); + } + + [Fact] + public void TestMnemonicStringPlugin() + { + var filler = new Filler(); + + filler.Setup() + .OnProperty(x => x.MnemonicStrings) + .Use(new Collectionizer(new MnemonicString(1, 20, 25), 3, 10)); + + var collection = filler.Create(); + Assert.True(collection.MnemonicStrings.Count() >= 3 && collection.MnemonicStrings.Count() <= 10); + Assert.True(collection.MnemonicStrings.All(x => x.Length >= 20 && x.Length <= 25)); + } + + [Fact] + public void TestMnemonicStringPluginTest() + { + var filler = new Filler(); + + filler.Setup() + .OnProperty(x => x.MnemonicStrings).Use>(); + + var collection = filler.Create(); + + Assert.NotNull(collection); + Assert.NotNull(collection.MnemonicStrings); + Assert.NotEmpty(collection.MnemonicStrings); + + collection.MnemonicStrings.ToList().ForEach(s => Debug.WriteLine(s)); + } + + [Fact] + public void TestIntRangePlugin() + { + var filler = new Filler(); + + filler.Setup() + .OnProperty(x => x.IntRange) + .Use(new Collectionizer(new IntRange(10, 15), 3, 10)); + + var collection = filler.Create(); + Assert.True(collection.IntRange.Count >= 3 && collection.IntRange.Count() <= 10); + Assert.True(collection.IntRange.All(x => x >= 10 && x <= 15)); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/CopyConstructorTest.cs b/Tynamix.ObjectFiller.TestBCK/CopyConstructorTest.cs new file mode 100644 index 0000000..1ba4e0e --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/CopyConstructorTest.cs @@ -0,0 +1,62 @@ +using System; +using Xunit; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class CopyConstructorTest + { + + [Fact] + public void WhenClassWithCopyConstructorIsCreatedNoExceptionShallBeThrown() + { + var f = new Filler(); + var cc = f.Create(); + + Assert.NotNull(cc); + } + + [Fact] + public void WhenClassWithJustCopyConstructorIsCreatedAExceptionShallBeThrown() + { + var f = new Filler(); + Assert.Throws(() => f.Create()); + + } + } + + public class ClassWithCopyConstructor + { + + public ClassWithCopyConstructor(ClassWithCopyConstructor constructor) + { + Count1 = constructor.Count1; + Count2 = constructor.Count2; + } + + public int Count1 { get; set; } + + public int Count2 { get; set; } + } + + + public class ClassWithCopyConstructorAndNormalConstructor + { + public ClassWithCopyConstructorAndNormalConstructor(int count1, int count2) + { + Count1 = count1; + Count2 = count2; + } + + public ClassWithCopyConstructorAndNormalConstructor(ClassWithCopyConstructorAndNormalConstructor constructor) + : this(constructor.Count1, constructor.Count2) + { + + } + + public int Count1 { get; set; } + + public int Count2 { get; set; } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/CountryNamesPlugin.cs b/Tynamix.ObjectFiller.TestBCK/CountryNamesPlugin.cs new file mode 100644 index 0000000..d838d6f --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/CountryNamesPlugin.cs @@ -0,0 +1,19 @@ +namespace ObjectFiller.Test +{ + using Xunit; + + using Tynamix.ObjectFiller; + + + public class CountryNamesPlugin + { + [Fact] + public void RandomNameIsReturned() + { + var sut = new CountryName(); + var value = sut.GetValue(); + + Assert.False(string.IsNullOrEmpty(value)); + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/CreateInstanceTest.cs b/Tynamix.ObjectFiller.TestBCK/CreateInstanceTest.cs new file mode 100644 index 0000000..ed17949 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/CreateInstanceTest.cs @@ -0,0 +1,78 @@ +using System.Collections.Generic; +using System.Linq; +using Xunit; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public abstract class Parent + { + public Parent(int id) + { + Id = id; + } + + public int Id { get; set; } + + } + + public class ChildOne : Parent + { + public ChildOne(int id) + : base(id) + { + } + + public string Name { get; set; } + } + + public class ChildTwo : Parent + { + public ChildTwo(int id) + : base(id) + { + } + + public string OtherName { get; set; } + } + + public class ParentOfParent + { + public ParentOfParent() + { + Parents = new List(); + } + + public List Parents { get; private set; } + + } + + + + public class CreateInstanceTest + { + + [Fact] + public void TestCreateInstanceOfChildOne() + { + Filler p = new Filler(); + + p.Setup().OnType().CreateInstanceOf() + .SetupFor() + .OnProperty(x => x.Name).Use(() => "TEST"); + + var pop = p.Create(); + + Assert.NotNull(pop); + Assert.NotNull(pop.Parents); + Assert.True(pop.Parents.All(x => x is ChildOne)); + Assert.False(pop.Parents.Any(x => x is ChildTwo)); + + Assert.True(pop.Parents.Cast().All(x => x.Name == "TEST")); + + + } + + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/DateTimeRangeTest.cs b/Tynamix.ObjectFiller.TestBCK/DateTimeRangeTest.cs new file mode 100644 index 0000000..da23300 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/DateTimeRangeTest.cs @@ -0,0 +1,72 @@ +namespace ObjectFiller.Test +{ + using System; + using System.Linq; + + using Xunit; + + using Tynamix.ObjectFiller; + + public class DateRangeTestClass + { + public DateTime Date { get; set; } + } + + + public class DateTimeRangeTest + { + [Fact] + public void WhenGettingDatesBetweenNowAnd31DaysAgo() + { + Filler filler = new Filler(); + + filler.Setup().OnType().Use( + new DateTimeRange(DateTime.Now.AddDays(-31))); + + var d = filler.Create(1000); + + Assert.True(d.All(x => x.Date < DateTime.Now && x.Date > DateTime.Now.AddDays(-31))); + } + + [Fact] + public void WhenStartDateIsBiggerThenEndDateTheDatesShouldBeSwitched() + { + Filler filler = new Filler(); + + filler.Setup().OnType().Use( + new DateTimeRange(DateTime.Now, DateTime.Now.AddDays(-31))); + + var d = filler.Create(1000); + + Assert.True(d.All(x => x.Date < DateTime.Now && x.Date > DateTime.Now.AddDays(-31))); + } + + [Fact] + public void WhenStartDateAndEndDateIsSetItShouldFindOnlyDatesInBetweenThisTwoDates() + { + var startDate = new DateTime(2000, 11, 10); + var endDate = new DateTime(2006, 1, 30); + + Filler filler = new Filler(); + + filler.Setup().OnType().Use(new DateTimeRange(startDate, endDate)); + + var d = filler.Create(1000); + d.ToList().ForEach(x => Console.WriteLine(x.Date)); + Assert.True(d.All(x => x.Date < endDate && x.Date > startDate)); + } + + [Fact] + public void WhenConstructorWithDateTimeNowWillBeCalledNoExceptionShouldBeThrown() + { + Filler filler = new Filler(); + + filler.Setup().OnProperty(x => x.Date).Use(new DateTimeRange(DateTime.Now)); + + var dateTime = filler.Create(); + + Assert.True(dateTime.Date > DateTime.MinValue); + Assert.True(dateTime.Date < DateTime.MaxValue); + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/DefaultDatatypeMappingsTest.cs b/Tynamix.ObjectFiller.TestBCK/DefaultDatatypeMappingsTest.cs new file mode 100644 index 0000000..90269a3 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/DefaultDatatypeMappingsTest.cs @@ -0,0 +1,72 @@ +using System; +using System.Diagnostics; +using System.Linq; + using Xunit; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class DefaultDatatypeMappingsTest + { + [Fact] + public void Ensure_that_double_does_not_return_infinity() + { + var filler = new Filler(); + var myClass = filler.Create(); + Assert.False(double.IsInfinity(myClass._double)); + + Assert.False(float.IsInfinity(myClass._float)); + } + + [Fact] + public void Ensure_that_each_primitive_datatype_is_mapped_by_default() + { + var filler = new Filler(); + var myClasses = filler.Create(100).ToArray(); + foreach (var myClass in myClasses) + { + Assert.NotEqual(default(Guid), myClass._Guid); + Assert.NotEqual(default(decimal), myClass._Decimal); + } + } + + public class MyClass + { + public bool _bool { get; set; } + public byte _byte { get; set; } + public char _char { get; set; } + public Int16 _i16 { get; set; } + public Int32 _i32 { get; set; } + public Int64 _i64 { get; set; } + public UInt16 _u16 { get; set; } + public UInt32 _u32 { get; set; } + public UInt64 _u64 { get; set; } + public float _float { get; set; } + public double _double { get; set; } + public decimal _Decimal { get; set; } + public IntPtr _IntPtr { get; set; } + public DateTime _DateTime { get; set; } + public TimeSpan _TimeSpan { get; set; } + public Guid _Guid { get; set; } + public string _String { get; set; } + + public bool? _n_bool { get; set; } + public byte? _n_byte { get; set; } + public char? _n_char { get; set; } + public Int16? _n_i16 { get; set; } + public Int32? _n_i32 { get; set; } + public Int64? _n_i64 { get; set; } + public UInt16? _n_u16 { get; set; } + public UInt32? _n_u32 { get; set; } + public UInt64? _n_u64 { get; set; } + public float? _n_float { get; set; } + public double? _n_double { get; set; } + public decimal? _n_Decimal { get; set; } + public IntPtr? _n_IntPtr { get; set; } + public DateTime? _n_DateTime { get; set; } + public TimeSpan? _n_TimeSpan { get; set; } + public Guid? _n_Guid { get; set; } + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/EmailAddressesPluginTest.cs b/Tynamix.ObjectFiller.TestBCK/EmailAddressesPluginTest.cs new file mode 100644 index 0000000..39eabb5 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/EmailAddressesPluginTest.cs @@ -0,0 +1,122 @@ +using System.Text.RegularExpressions; +using Xunit; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class EmailAddressesPluginTests + { + public string StandardAssertMessage = "Given value does not match e-mail address standard."; + + /// + /// Regex for EMail addresses based on RFC 5322. Unfortunately, it does not find whitespace and yes I am to dumb to fix this issue... + /// + /// + private static Regex RFC5322RegEx = + new Regex(@"[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", RegexOptions.IgnoreCase); + + [Fact] + public void DefaultModeShouldReturnValidEmailAdress() + { + var value = new EmailAddresses().GetValue(); + Assert.True(RFC5322RegEx.IsMatch(value)); + } + + [Fact] + public void TwoCallsCreateTwoDifferentEMailAddresses() + { + var sut = new EmailAddresses(); + var firstValue = sut.GetValue(); + var secondValue = sut.GetValue(); + + Assert.NotEqual(firstValue, secondValue); + } + + [Fact] + public void EMailAddressMustBeValidWithRealNames() + { + var sut = new EmailAddresses(); + + var value = sut.GetValue(); + + Assert.True(RFC5322RegEx.IsMatch(value)); + } + + [Fact] + public void DomainNamesAreUsedFromRandomData() + { + var referenceValue = "google.com"; + var fake = new FakeRandomizerPlugin(referenceValue); + + var sut = new EmailAddresses(fake, fake); + + var result = sut.GetValue(); + + Assert.EndsWith(referenceValue, result); + Assert.True(RFC5322RegEx.IsMatch(result)); + } + + [Fact] + public void PluginMustEnsureValidAddressesEvenAnInvalidDomainNameIsProvided() + { + var referenceValue = "googlecom"; + var fake = new FakeRandomizerPlugin(referenceValue); + + var sut = new EmailAddresses(fake, fake); + + var result = sut.GetValue(); + Assert.True(RFC5322RegEx.IsMatch(result)); + } + + [Fact] + public void LocalPathMustBeUsedFromRandomData() + { + var referenceValue = "karl"; + var fake = new FakeRandomizerPlugin(referenceValue); + + var sut = new EmailAddresses(fake); + + var result = sut.GetValue(); + + Assert.StartsWith(referenceValue, result); + Assert.True(RFC5322RegEx.IsMatch(result)); + } + + [Fact] + public void PluginMustEnsureValidAddressesEvenAnInvalidLocalPartIsProvided() + { + var referenceValue = "ka rl"; + var fake = new FakeRandomizerPlugin(referenceValue); + + var sut = new EmailAddresses(fake); + + var result = sut.GetValue(); + + Assert.True(RFC5322RegEx.IsMatch(result)); + } + + [Fact] + public void GivenDomainRootIsAttachedToGeneratedEmailAddress() + { + var domainRoot = ".de"; + var sut = new EmailAddresses(domainRoot); + + var result = sut.GetValue(); + + Assert.EndsWith(domainRoot, result); + Assert.True(RFC5322RegEx.IsMatch(result)); + } + + [Fact] + public void EmailAddressesWorksInCombinationWithRealNamesPlugin() + { + var realNames = new RealNames(NameStyle.FirstNameLastName); + + var sut = new EmailAddresses(realNames); + var result = sut.GetValue(); + + Assert.True(RFC5322RegEx.IsMatch(result)); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/EnumTest.cs b/Tynamix.ObjectFiller.TestBCK/EnumTest.cs new file mode 100644 index 0000000..cc2a22e --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/EnumTest.cs @@ -0,0 +1,156 @@ +using System; + using Xunit; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class EnumTest + { + [Fact] + public void Must_support_enums_out_of_the_box() + { + var filler = new Filler(); + filler.Setup() + .OnProperty(x => x.Manual).Use(() => ManualSetupEnum.B) + .OnProperty(x => x.Ignored).IgnoreIt(); + + for (int n = 0; n < 1000; n++) + { + var c = filler.Create(); + + Assert.True( + c.Standard == StandardEnum.A || + c.Standard == StandardEnum.B || + c.Standard == StandardEnum.C); + + Assert.True( + c.Numbered == NumberedEnum.A || + c.Numbered == NumberedEnum.B || + c.Numbered == NumberedEnum.C); + + Assert.True( + c.Flags == FlagsEnum.A || + c.Flags == FlagsEnum.B || + c.Flags == FlagsEnum.C); + + Assert.True((int)c.Nasty == 0); + + Assert.True(c.Manual == ManualSetupEnum.B); + + Assert.True((int)c.Ignored == 0); + } + } + + [Fact] + public void Must_support_class_with_enums_as_ctor_out_of_the_box() + { + var filler = new Filler(); + filler.Setup().OnProperty(x => x.Manual).Use(() => ManualSetupEnum.B); + + for (int n = 0; n < 1000; n++) + { + var c = filler.Create(); + + Assert.True( + c.Standard == StandardEnum.A || + c.Standard == StandardEnum.B || + c.Standard == StandardEnum.C); + + Assert.True( + c.Numbered == NumberedEnum.A || + c.Numbered == NumberedEnum.B || + c.Numbered == NumberedEnum.C); + + Assert.True( + c.Flags == FlagsEnum.A || + c.Flags == FlagsEnum.B || + c.Flags == FlagsEnum.C); + + Assert.True((int)c.Nasty == 0); + + Assert.True(c.Manual == ManualSetupEnum.B); + } + } + + [Fact] + public void FillNullableEnum() + { + var filler = new Filler(); + + var c = filler.Create(); + Assert.True( + c.NullableEnum == StandardEnum.A || + c.NullableEnum == StandardEnum.B || + c.NullableEnum == StandardEnum.C); + } + + + public enum StandardEnum + { + A, B, C + } + + public enum NumberedEnum + { + A = 1, B = 3, C = 5 + } + + [Flags] + public enum FlagsEnum + { + A = 0x01, + B = 0x02, + C = A | B, + } + + [Flags] + public enum NastyEmptyEnum + { + } + + public enum ManualSetupEnum + { + A, B, C + } + + public enum IgnoredEnum + { + A, B, C + } + + public class MyClass + { + public StandardEnum Standard { get; set; } + public NumberedEnum Numbered { get; set; } + public FlagsEnum Flags { get; set; } + public NastyEmptyEnum Nasty { get; set; } + public ManualSetupEnum Manual { get; set; } + public IgnoredEnum Ignored { get; set; } + } + + public class MyClassWithCstr + { + public MyClassWithCstr(StandardEnum standard, NumberedEnum numbered, FlagsEnum flags, ManualSetupEnum manual, IgnoredEnum ignored) + { + this.Standard = standard; + this.Numbered = numbered; + this.Flags = flags; + this.Manual = manual; + this.Ignored = ignored; + } + + public StandardEnum Standard { get; set; } + public NumberedEnum Numbered { get; set; } + public FlagsEnum Flags { get; set; } + public NastyEmptyEnum Nasty { get; set; } + public ManualSetupEnum Manual { get; set; } + public IgnoredEnum Ignored { get; set; } + } + + public class ClassWithNullableEnum + { + public StandardEnum? NullableEnum { get; set; } + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/HashStackTests.cs b/Tynamix.ObjectFiller.TestBCK/HashStackTests.cs new file mode 100644 index 0000000..26979a4 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/HashStackTests.cs @@ -0,0 +1,35 @@ +using System; +using Xunit; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class HashStackTests + { + [Fact] + public void HashStack_PushSameItem_ReturnsFalse() + { + var s = new HashStack(); + s.Push(1); + var added = s.Push(1); + + Assert.False(added); + } + + [Fact] + public void HashStack_ContainsTest() + { + var s = new HashStack(); + s.Push(5); + Assert.Equal(true, s.Contains(5)); + } + + [Fact] + public void HashStack_PopWithNoElements_Throws() + { + var s = new HashStack(); + Assert.Throws(()=> s.Pop()); + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/IpAddressPluginTest.cs b/Tynamix.ObjectFiller.TestBCK/IpAddressPluginTest.cs new file mode 100644 index 0000000..fd6562d --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/IpAddressPluginTest.cs @@ -0,0 +1,88 @@ +namespace ObjectFiller.Test +{ + using System.Security.Policy; + using Tynamix.ObjectFiller; + using Xunit; + + public class IpAddressPluginTest + { + + internal class IpAddressClass + { + public string IpAddress { get; set; } + } + + [Fact] + public void TestIpAddressGenerator() + { + Filler filler = new Filler(); + + filler.Setup() + .OnProperty(x => x.IpAddress).Use(); + + var result = filler.Create(); + + var ipAddresses = result.IpAddress.Split('.'); + + Assert.Collection(ipAddresses, + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255)); + } + + [Fact] + public void TestIpAddressGeneratorWithWrongNumbersAndFirstSegmentMaximumOf10() + { + Filler filler = new Filler(); + + filler.Setup().OnProperty(x => x.IpAddress).Use(new IpAddress(10, 300, 300, 300)); + + var result = filler.Create(); + + var ipAddresses = result.IpAddress.Split('.'); + + Assert.Collection(ipAddresses, + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255)); + } + + [Fact] + public void TestIpAddressGeneratorWithSegmentSetup() + { + Filler filler = new Filler(); + + filler.Setup().OnProperty(x => x.IpAddress).Use(new IpAddress(10, 10, 10, 10)); + + var result = filler.Create(); + + var ipAddresses = result.IpAddress.Split('.'); + + Assert.Collection(ipAddresses, + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10)); + } + + [Fact] + public void TestIpAddressGeneratorWithFirstTwoSegmentSetup() + { + Filler filler = new Filler(); + + filler.Setup().OnProperty(x => x.IpAddress).Use(new IpAddress(10, 10)); + + var result = filler.Create(); + + var ipAddresses = result.IpAddress.Split('.'); + + Assert.Collection(ipAddresses, + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), + (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255)); + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/LibraryFillingTest.cs b/Tynamix.ObjectFiller.TestBCK/LibraryFillingTest.cs new file mode 100644 index 0000000..ed09df7 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/LibraryFillingTest.cs @@ -0,0 +1,130 @@ +using System; +using System.Linq; +using Xunit; +using ObjectFiller.Test.TestPoco.Library; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class LibraryFillingTest + { + [Fact] + public void TestFillLibraryWithSimpleTypes() + { + Filler lib = new Filler(); + lib.Setup() + .OnProperty(x => x.Books).IgnoreIt(); + LibraryConstructorWithSimple filledLib = lib.Create(); + + Assert.Null(filledLib.Books); + Assert.NotNull(filledLib); + Assert.NotNull(filledLib.City); + Assert.NotNull(filledLib.Name); + } + + [Fact] + public void TestFillLibraryWithListOfBooks() + { + Filler lib = new Filler(); + lib.Setup() + .OnProperty(x => x.Books).IgnoreIt() + .OnProperty(x => x.Name).IgnoreIt(); + + LibraryConstructorList filledLib = lib.Create(); + + Assert.NotNull(filledLib); + Assert.NotNull(filledLib.Books); + Assert.NotNull(filledLib.Name); + } + + [Fact] + public void TestFillLibraryWithListOfIBooks() + { + Filler lib = new Filler(); + lib.Setup() + .OnProperty(x => x.Books).IgnoreIt() + .OnType().CreateInstanceOf(); + + LibraryConstructorList filledLib = lib.Create(); + + Assert.NotNull(filledLib.Books); + } + + [Fact] + public void TestFillLibraryWithPocoOfABook() + { + Filler lib = new Filler(); + lib.Setup() + .OnProperty(x => x.Books).IgnoreIt(); + + LibraryConstructorPoco filledLib = lib.Create(); + Assert.NotNull(filledLib.Books); + Assert.Equal(1, filledLib.Books.Count); + } + + [Fact] + public void TestFillLibraryWithConfiguredPocoOfABook() + { + Filler lib = new Filler(); + lib.Setup() + .OnProperty(x => x.Books).IgnoreIt() + .SetupFor() + .OnProperty(x => x.Name).Use(() => "ABook"); + + + var l = lib.Create(); + + Assert.Equal("ABook", ((Book)l.Books.ToList()[0]).Name); + + } + + [Fact] + public void TestFillLibraryWithDictionary() + { + Filler lib = new Filler(); + lib.Setup() + .OnType().CreateInstanceOf() + .OnProperty(x => x.Books).IgnoreIt(); + + LibraryConstructorDictionary filledLib = lib.Create(); + Assert.NotNull(filledLib.Books); + } + + [Fact] + public void TestFillLibraryWithDictionaryAndPoco() + { + Filler lib = new Filler(); + lib.Setup() + .OnProperty(x => x.Books).IgnoreIt() + .OnProperty(x => x.Name).IgnoreIt(); + + + LibraryConstructorDictionary filledLib = lib.Create(); + Assert.NotNull(filledLib.Books); + Assert.NotNull(filledLib.Name); + + } + + + public class Person + { + public string Name { get; set; } + public string LastName { get; set; } + public int Age { get; set; } + public DateTime Birthday { get; set; } + } + + public class HelloFiller + { + public void FillPerson() + { + Person person = new Person(); + + Filler pFiller = new Filler(); + Person p = pFiller.Fill(person); + } + } + + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/ListFillingTest.cs b/Tynamix.ObjectFiller.TestBCK/ListFillingTest.cs new file mode 100644 index 0000000..11d8821 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/ListFillingTest.cs @@ -0,0 +1,158 @@ +using System; +using System.Collections.Generic; +using System.Linq; + using Xunit; +using ObjectFiller.Test.TestPoco.ListTest; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + using ObjectFiller.Test.TestPoco; + + + public class ListFillingTest + { + [Fact] + public void TestFillAllListsExceptArray() + { + Filler eFiller = new Filler(); + eFiller.Setup() + .OnProperty(x => x.EntityArray).IgnoreIt(); + + EntityCollection entity = eFiller.Create(); + + Assert.NotNull(entity); + Assert.NotNull(entity.EntityList); + Assert.NotNull(entity.EntityICollection); + Assert.NotNull(entity.EntityIEnumerable); + Assert.NotNull(entity.EntityIList); + Assert.NotNull(entity.EntityHashset); + + } + + [Fact] + public void TestUseEnumerable() + { + Filler eFiller = new Filler(); + eFiller.Setup() + .ListItemCount(20) + .OnProperty(x => x.EntityICollection, + x => x.EntityIList, x => x.ObservableCollection, + x => x.EntityIEnumerable).IgnoreIt() + .OnProperty(x => x.EntityArray).IgnoreIt() + .SetupFor() + .OnProperty(x => x.Id).Use(Enumerable.Range(1, 22).Select(x => (int)Math.Pow(2, x))); + + EntityCollection ec = eFiller.Create(); + + for (int i = 0; i < ec.EntityList.Count; i++) + { + int lastPowNum = (int)Math.Pow(2, i + 1); + Assert.Equal(lastPowNum, ec.EntityList[i].Id); + } + } + + [Fact] + public void TestFillList() + { + Filler eFiller = new Filler(); + eFiller.Setup() + .OnProperty(ec => ec.EntityArray).Use(GetArray); + EntityCollection entity = eFiller.Create(); + + Assert.NotNull(entity); + Assert.NotNull(entity.EntityList); + Assert.NotNull(entity.EntityICollection); + Assert.NotNull(entity.EntityIEnumerable); + Assert.NotNull(entity.EntityIList); + Assert.NotNull(entity.EntityArray); + Assert.NotNull(entity.EntityHashset); + } + + [Fact] + public void TestIgnoreAllUnknownTypesWithOutException() + { + Filler filler = new Filler(); + filler.Setup().IgnoreAllUnknownTypes(); + var entity = filler.Create(); + Assert.Null(entity.EntityArray); + Assert.NotNull(entity); + Assert.NotNull(entity.EntityList); + Assert.NotNull(entity.EntityICollection); + Assert.NotNull(entity.EntityIEnumerable); + Assert.NotNull(entity.EntityIList); + Assert.NotNull(entity.EntityHashset); + } + + [Fact] + public void TestIgnoreAllUnknownTypesWithException() + { + Filler filler = new Filler(); + Assert.Throws(()=>filler.Create()); + } + + [Fact] + public void GenerateTestDataForASortedList() + { + Filler> filler = new Filler>(); + filler.Setup().OnType().Use(Enumerable.Range(1, 1000)); + var result = filler.Create(10).ToList(); + + Assert.Equal(10, result.Count); + foreach (var sortedList in result) + { + Assert.True(sortedList.Any()); + } + } + + [Fact] + public void GenerateTestDataForASimpleList() + { + Filler> filler = new Filler>(); + filler.Setup().IgnoreAllUnknownTypes(); + var createdList = filler.Create(); + + Assert.True(createdList.Any()); + + foreach (EntityCollection entityCollection in createdList) + { + Assert.True(entityCollection.EntityICollection.Any()); + Assert.True(entityCollection.EntityIEnumerable.Any()); + Assert.True(entityCollection.EntityIList.Any()); + Assert.True(entityCollection.EntityList.Any()); + Assert.NotNull(entityCollection.EntityHashset.Any()); + } + } + + [Fact] + public void GenerateTestDataForADictionary() + { + Filler> filler = new Filler>(); + var result = filler.Create(10).ToList(); + + Assert.Equal(10, result.Count); + foreach (var sortedList in result) + { + Assert.True(sortedList.Any()); + } + } + + [Fact] + public void GenerateDictionaryWithEnumeration() + { + var amountOfEnumValues = Enum.GetValues(typeof(TestEnum)).Length; + var filler = new Filler>(); + var result = filler.Create(); + + Assert.Equal(amountOfEnumValues, result.Count); + } + + private Entity[,] GetArray() + { + Filler of = new Filler(); + var entity = new Entity[,] { { of.Create() } }; + + return entity; + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/LoremIpsumPluginTest.cs b/Tynamix.ObjectFiller.TestBCK/LoremIpsumPluginTest.cs new file mode 100644 index 0000000..58996ab --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/LoremIpsumPluginTest.cs @@ -0,0 +1,97 @@ +using System; +using System.Linq; +using Xunit; +using ObjectFiller.Test.TestPoco.Library; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + using System.Collections.Generic; + + + public class LoremIpsumPluginTest + { + + [Fact] + public void Test_With_Many_MinWords_And_Many_MinSentences() + { + Filler book = new Filler(); + book.Setup() + .OnProperty(x => x.ISBN).Use(new Lipsum(LipsumFlavor.InDerFremde, 51, 100, 100)); + + var b = book.Create(); + + Assert.NotNull(b); + } + + [Fact] + public void Test_With_German_Default_Settings() + { + Filler book = new Filler(); + book.Setup() + .OnProperty(x => x.ISBN).Use(new Lipsum(LipsumFlavor.InDerFremde)); + + var b = book.Create(); + + Assert.NotNull(b); + } + + [Fact] + public void Test_With_France_High_Values_Settings() + { + Filler book = new Filler(); + book.Setup() + .OnProperty(x => x.ISBN).Use(new Lipsum(LipsumFlavor.LeMasque, 20, 50, 100, 250, 500)); + + var b = book.Create(); + + Assert.NotNull(b); + } + + [Fact] + public void Test_With_English_Min_Values_Settings() + { + Filler book = new Filler(); + book.Setup() + .OnProperty(x => x.ISBN).Use(new Lipsum(LipsumFlavor.ChildHarold, 1, 1, 1, 1, 1)); + + var b = book.Create(); + + b.ISBN = b.ISBN.Replace("\r\n\r\n", string.Empty); + Assert.NotNull(b); + Assert.Equal(1, b.ISBN.Split('\n').Length); + } + + [Fact] + public void Test_With_LoremIpsum_Seed_Settings() + { + Filler book = new Filler(); + book.Setup() + .OnProperty(x => x.ISBN).Use(new Lipsum(LipsumFlavor.LoremIpsum, 3, 5, 1, 5, 3, 1234)); + + var b = book.Create(); + var b1 = book.Create(); + + Assert.NotNull(b); + Assert.NotNull(b1); + Assert.Equal(b.ISBN, b1.ISBN); + } + + [Fact] + public void LoremIpsum_should_provide_different_data() + { + var alowedDelta = 2; + + var filler = new Filler(); + filler.Setup() + .OnProperty(foo => foo.Description) + .Use(new Lipsum(LipsumFlavor.LoremIpsum)); + + var resultElements = filler.Create(100); + + var groupedResult = resultElements.GroupBy(x => x.Description); + + Assert.Equal((double)100, groupedResult.Count(), alowedDelta); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/ObjectFillerRecursiveTests.cs b/Tynamix.ObjectFiller.TestBCK/ObjectFillerRecursiveTests.cs new file mode 100644 index 0000000..418ac14 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/ObjectFillerRecursiveTests.cs @@ -0,0 +1,188 @@ +using System; +using System.Collections.Generic; + using Xunit; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class ObjectFillerRecursiveTests + { + + // ReSharper disable ClassNeverInstantiated.Local + + private class TestParent + { + public TestChild Child { get; set; } + } + + private class TestChild + { + public TestParent Parent { get; set; } + } + + private class TestGrandParent + { + public TestParent SubObject { get; set; } + } + + private class TestEmptyNode + { + public string Value { get; set; } + } + + private class TestSelf + { + public TestSelf Self { get; set; } + + public string Foo { get; set; } + } + + private class TestDuplicate + { + public TestEmptyNode Node1 { get; set; } + public TestEmptyNode Node2 { get; set; } + } + + public class Children + { + public Parent Parent { get; set; } + } + + public class Parent + { + public List Childrens { get; set; } + } + + public class ParentDictionary + { + public Dictionary Childrens { get; set; } + } + + // ReSharper restore ClassNeverInstantiated.Local + + [Fact] + public void RecursiveFill_RecursiveType_ThrowsException() + { + var filler = new Filler(); + filler.Setup().OnCircularReference().ThrowException(); + Assert.Throws(() => filler.Create()); + } + + [Fact] + public void RecursiveFill_WithIgnoredProperties_Succeeds() + { + var filler = new Filler(); + filler.Setup().OnProperty(p => p.Child).IgnoreIt(); + var result = filler.Create(); + + Assert.NotNull(result); + } + + [Fact] + public void RecursiveFill_WithFunc_Succeeds() + { + var filler = new Filler(); + filler.Setup().OnProperty(p => p.Child).Use(() => new TestChild()); + var result = filler.Create(); + + Assert.NotNull(result.Child); + } + + [Fact] + public void RecursiveFill_RecursiveType_Parent_First_Fails() + { + var filler = new Filler(); + filler.Setup().OnCircularReference().ThrowException(); + Assert.Throws(() => filler.Create()); + } + + [Fact] + public void RecursiveFill_RecursiveType_Child_First_Fails() + { + var filler = new Filler(); + filler.Setup().OnCircularReference().ThrowException(); + Assert.Throws(() => filler.Create()); + } + + [Fact] + public void RecursiveFill_DeepRecursiveType_Fails() + { + var filler = new Filler(); + filler.Setup().OnCircularReference().ThrowException(); + Assert.Throws(() => filler.Create()); + + } + + [Fact] + public void RecursiveFill_SelfReferencing_Fails() + { + var filler = new Filler(); + filler.Setup().OnCircularReference().ThrowException(); + Assert.Throws(() => filler.Create()); + } + + [Fact] + public void RecursiveFill_DuplicateProperty_Succeeds() + { + // reason: a filler should not complain if it encounters the same type + // in two separate branches of a type hierarchy + var filler = new Filler(); + var result = filler.Create(); + + Assert.NotNull(result); + } + + [Fact] + public void RecursiveFill_RecursiveType_Parent_First_Succeeds() + { + var filler = new Filler(); + var r = filler.Create(); + Assert.Null(r.Child.Parent.Child); + } + + [Fact] + public void RecursiveFill_RecursiveType_Child_First_Succeeds() + { + var filler = new Filler(); + var r = filler.Create(); + Assert.Null(r.Parent.Child.Parent); + + } + + [Fact] + public void RecursiveFill_DeepRecursiveType_Succeeds() + { + var filler = new Filler(); + var r = filler.Create(); + Assert.Null(r.SubObject.Child.Parent); + } + + [Fact] + public void RecursiveFill_SelfReferencing_Succeeds() + { + var filler = new Filler(); + var r = filler.Create(); + + Assert.Null(r.Self.Self); + } + + [Fact] + public void RecursiveFill_ParentList_Succeeds() + { + var filler = new Filler(); + var r = filler.Create(); + + Assert.Null(r.Childrens[0].Parent.Childrens); + } + + [Fact] + public void RecursiveFill_ParentDictionary_Succeeds() + { + var filler = new Filler(); + var r = filler.Create(); + } + + + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/ObjectFillerTest.cs b/Tynamix.ObjectFiller.TestBCK/ObjectFillerTest.cs new file mode 100644 index 0000000..c335a27 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/ObjectFillerTest.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; + using Xunit; +using ObjectFiller.Test.TestPoco.Person; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class ObjectFillerTest + { + [Fact] + public void TestFillPerson() + { + Person p = new Person(); + Filler filler = new Filler(); + filler.Setup() + .OnType().CreateInstanceOf
() + .OnType().Use(new MnemonicString(10)) + .OnProperty(person => person.FirstName).Use() + .OnProperty(person => person.LastName).Use(new RandomListItem("Maik", "Tom", "Anton")) + .OnProperty(person => person.Age).Use(() => Tynamix.ObjectFiller.Random.Next(12, 83)) + .SetupFor
() + .OnProperty(x => x.City, x => x.Country).IgnoreIt(); + + Person pFilled = filler.Fill(p); + + Assert.True(new List() { "Maik", "Tom", "Anton" }.Contains(pFilled.LastName)); + } + + + + + [Fact] + public void CreateMultipleInstances() + { + Filler filler = new Filler(); + IEnumerable pList = filler.Create(10); + + Assert.NotNull(pList); + Assert.Equal(10, pList.Count()); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/PatternGeneratorTest.cs b/Tynamix.ObjectFiller.TestBCK/PatternGeneratorTest.cs new file mode 100644 index 0000000..059f4e0 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/PatternGeneratorTest.cs @@ -0,0 +1,287 @@ +using System; +using System.Reflection.Emit; +using Xunit; +using System.Text.RegularExpressions; +using System.Collections.Generic; +using ObjectFiller.Test.TestPoco.Person; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class PatternGeneratorTest + { + [Fact] + public void Must_be_able_to_handle_private_setters() + { + var filler = new Filler(); + filler.Setup() + .OnProperty(x => x.NameStyle).DoIt(At.TheEnd).Use(() => NameStyle.FirstNameLastName) + .OnProperty(x => x.WithPrivateSetter); + + + var obj = filler.Create(); + + Assert.NotEqual(0, obj.WithPrivateSetter); + Assert.Equal(123, obj.WithoutSetter); + + Assert.Equal(obj.NameStyle, NameStyle.FirstNameLastName); + } + + [Fact] + public void Must_be_able_to_handle_inheritance_and_sealed() + { + var filler = new Filler(); + var obj = filler.Create(); + + Assert.NotEqual(0, obj.NormalNumber); + Assert.NotEqual(0, obj.OverrideNormalNumber); + Assert.NotEqual(0, obj.SealedOverrideNormalNumber); + } + + [Fact] + public void Must_be_able_to_handle_arrays() + { + var filler = new Filler(); + + //.For(); + var obj = filler.Create(); + + Assert.NotNull(obj.Ints); + Assert.NotNull(obj.Strings); + Assert.NotNull(obj.JaggedStrings); + Assert.NotNull(obj.ThreeJaggedDimensional); + Assert.NotNull(obj.ThreeJaggedPoco); + + } + + [Fact] + public void StringPatternGenerator_A() + { + HashSet chars = new HashSet(); + + var sut = new PatternGenerator("{A}"); + for (int n = 0; n < 10000; n++) + { + var s = sut.GetValue(); + Assert.True(Regex.IsMatch(s, "^[A-Z]$")); + chars.Add(s[0]); + } + + Assert.Equal(26, chars.Count); + } + + [Fact] + public void StringPatternGenerator_A_fixed_len() + { + var sut = new PatternGenerator("x{A:3}x"); + for (int n = 0; n < 10000; n++) + { + var s = sut.GetValue(); + Assert.True(Regex.IsMatch(s, "^x[A-Z]{3}x$")); + } + } + + [Fact] + public void StringPatternGenerator_A_random_len() + { + var sut = new PatternGenerator("x{A:3-6}x"); + for (int n = 0; n < 10000; n++) + { + var s = sut.GetValue(); + Assert.True(Regex.IsMatch(s, "^x[A-Z]{3,6}x$")); + } + } + + [Fact] + public void StringPatternGenerator_a() + { + HashSet chars = new HashSet(); + + var sut = new PatternGenerator("{a}"); + for (int n = 0; n < 10000; n++) + { + var s = sut.GetValue(); + Assert.True(s.Length == 1); + Assert.True(Regex.IsMatch(s, "^[a-z]$")); + chars.Add(s[0]); + } + + Assert.Equal(26, chars.Count); + } + + [Fact] + public void StringPatternGenerator_a_composite() + { + HashSet chars = new HashSet(); + + var sut = new PatternGenerator("a {a}"); + for (int n = 0; n < 10000; n++) + { + var s = sut.GetValue(); + Assert.True(s.Length == 3); + Assert.True(Regex.IsMatch(s, "^a [a-z]$")); + chars.Add(s[2]); + } + + Assert.Equal(26, chars.Count); + } + + [Fact] + public void StringPatternGenerator_aaa() + { + var sut = new PatternGenerator("xcccx"); + for (int n = 0; n < 10000; n++) + { + var s = sut.GetValue(); + Assert.True(s.Length == 5); + Assert.True(Regex.IsMatch(s, "^x[a-z]{3}x$")); + } + } + + [Fact] + public void StringPatternGenerator_N() + { + HashSet chars = new HashSet(); + + var sut = new PatternGenerator("{N}"); + for (int n = 0; n < 10000; n++) + { + var s = sut.GetValue(); + Assert.True(s.Length == 1); + Assert.True(Regex.IsMatch(s, "^[0-9]$")); + chars.Add(s[0]); + } + + Assert.Equal(10, chars.Count); + } + + [Fact] + public void StringPatternGenerator_X() + { + HashSet chars = new HashSet(); + + var sut = new PatternGenerator("{X}"); + for (int n = 0; n < 10000; n++) + { + var s = sut.GetValue(); + Assert.True(s.Length == 1); + Assert.True(Regex.IsMatch(s, "^[0-9A-F]$")); + chars.Add(s[0]); + } + + Assert.Equal(16, chars.Count); + } + + [Fact] + public void StringPatternGenerator_C_simple() + { + var sut = new PatternGenerator("{C}"); + Assert.Equal("1", sut.GetValue()); + Assert.Equal("2", sut.GetValue()); + Assert.Equal("3", sut.GetValue()); + } + + [Fact] + public void StringPatternGenerator_C_with_StartValue() + { + var sut = new PatternGenerator("{C:33}"); + Assert.Equal("33", sut.GetValue()); + Assert.Equal("34", sut.GetValue()); + Assert.Equal("35", sut.GetValue()); + } + + [Fact] + public void StringPatternGenerator_C_with_StartValue_with_Increment() + { + var sut = new PatternGenerator("{C:33,3}"); + Assert.Equal("33", sut.GetValue()); + Assert.Equal("36", sut.GetValue()); + Assert.Equal("39", sut.GetValue()); + } + + [Fact] + public void StringPatternGenerator_C_combination() + { + var sut = new PatternGenerator("_{C}_{C:+11}_{C:110,10}_"); + Assert.Equal("_1_11_110_", sut.GetValue()); + Assert.Equal("_2_12_120_", sut.GetValue()); + Assert.Equal("_3_13_130_", sut.GetValue()); + Assert.Equal("_4_14_140_", sut.GetValue()); + } + + [Fact] + public void StringPatternGenerator_C_startvalue_negative_value() + { + var sut = new PatternGenerator("{C:-3}"); + Assert.Equal("-3", sut.GetValue()); + Assert.Equal("-2", sut.GetValue()); + Assert.Equal("-1", sut.GetValue()); + Assert.Equal("0", sut.GetValue()); + Assert.Equal("1", sut.GetValue()); + Assert.Equal("2", sut.GetValue()); + Assert.Equal("3", sut.GetValue()); + } + + [Fact] + public void StringPatternGenerator_C__startvalue_negative__positive_increment() + { + var sut = new PatternGenerator("{C:-3,+2}"); + Assert.Equal("-3", sut.GetValue()); + Assert.Equal("-1", sut.GetValue()); + Assert.Equal("1", sut.GetValue()); + Assert.Equal("3", sut.GetValue()); + } + + [Fact] + public void StringPatternGenerator_C__startvalue_negative__negative_increment() + { + var sut = new PatternGenerator("{C:-3,-2}"); + Assert.Equal("-3", sut.GetValue()); + Assert.Equal("-5", sut.GetValue()); + Assert.Equal("-7", sut.GetValue()); + } + + } + + public class ClassWithPrivateStuffAbstract + { + public int WithPrivateSetter { get; private set; } + public int WithoutSetter { get { return 123; } } + + public NameStyle NameStyle { get; private set; } + } + + public class ClassWithPrivateStuff : ClassWithPrivateStuffAbstract + { + public string Name { get; set; } + } + + public sealed class ClassWithPrivateStuffSealed : ClassWithPrivateStuff + { + public int Number { get; set; } + } + + public class BaseClass + { + public int NormalNumber { get; set; } + public virtual int OverrideNormalNumber { get; set; } + public virtual int SealedOverrideNormalNumber { get; set; } + } + + public class InheritedClass : BaseClass + { + public override int OverrideNormalNumber { get; set; } + public override sealed int SealedOverrideNormalNumber { get; set; } + } + + public class WithArrays + { + public int[] Ints { get; set; } + public string[] Strings { get; set; } + public string[][] JaggedStrings { get; set; } + public string[][][] ThreeJaggedDimensional { get; set; } + + public Address[][][] ThreeJaggedPoco { get; set; } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/PersonFillingTest.cs b/Tynamix.ObjectFiller.TestBCK/PersonFillingTest.cs new file mode 100644 index 0000000..f543ede --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/PersonFillingTest.cs @@ -0,0 +1,241 @@ +using System; +using System.Collections.Generic; +using System.Linq; + using Xunit; +using ObjectFiller.Test.TestPoco.Person; +using Tynamix.ObjectFiller; +using Random = Tynamix.ObjectFiller.Random; + +namespace ObjectFiller.Test +{ + + public class PersonFillingTest + { + [Fact] + public void TestFillPerson() + { + Filler pFiller = new Filler(); + + pFiller.Setup() + .OnType().CreateInstanceOf
(); + + Person filledPerson = pFiller.Create(); + + Assert.NotNull(filledPerson.Address); + Assert.NotNull(filledPerson.Addresses); + Assert.NotNull(filledPerson.StringToIAddress); + Assert.NotNull(filledPerson.SureNames); + + } + + [Fact] + public void TestFillPersonWithEnumerable() + { + Filler pFiller = new Filler(); + + pFiller.Setup() + .OnType().CreateInstanceOf
() + .OnProperty(x => x.Age).Use(Enumerable.Range(18, 60)); + + + Person filledPerson = pFiller.Create(); + + Assert.NotNull(filledPerson.Address); + Assert.NotNull(filledPerson.Addresses); + Assert.NotNull(filledPerson.StringToIAddress); + Assert.NotNull(filledPerson.SureNames); + + } + + [Fact] + public void TestNameListStringRandomizer() + { + Filler pFiller = new Filler(); + + pFiller.Setup().OnType().CreateInstanceOf
() + .OnProperty(p => p.FirstName).Use(new RealNames(NameStyle.FirstName)) + .OnProperty(p => p.LastName).Use(new RealNames(NameStyle.LastName)); + + Person filledPerson = pFiller.Create(); + + Assert.NotNull(filledPerson.FirstName); + Assert.NotNull(filledPerson.LastName); + + } + + [Fact] + public void TestFirstNameAsConstantLastNameAsRealName() + { + Filler pFiller = new Filler(); + + pFiller.Setup() + .OnType().CreateInstanceOf
() + .OnProperty(p => p.FirstName).Use(() => "John") + .OnProperty(p => p.LastName).Use(new RealNames(NameStyle.LastName)); + + Person filledPerson = pFiller.Create(); + + Assert.NotNull(filledPerson.FirstName); + Assert.Equal("John", filledPerson.FirstName); + Assert.NotNull(filledPerson.LastName); + + } + + [Fact] + public void GeneratePersonWithGivenSetOfNamesAndAges() + { + List names = new List { "Tom", "Maik", "John", "Leo" }; + List ages = new List { 10, 15, 18, 22, 26 }; + + Filler pFiller = new Filler(); + pFiller.Setup() + .OnType().CreateInstanceOf
() + .OnProperty(p => p.FirstName).Use(new RandomListItem(names)) + .OnProperty(p => p.Age).Use(new RandomListItem(ages)); + + var pF = pFiller.Create(); + + Assert.True(names.Contains(pF.FirstName)); + Assert.True(ages.Contains(pF.Age)); + } + + + [Fact] + public void BigComplicated() + { + Filler pFiller = new Filler(); + pFiller.Setup() + .OnType().CreateInstanceOf
() + .OnProperty(p => p.LastName, p => p.FirstName).DoIt(At.TheEnd).Use(new RealNames(NameStyle.FirstName)) + .OnProperty(p => p.Age).Use(() =>Random.Next(10, 32)) + .SetupFor
() + .OnProperty(a => a.City).Use(new MnemonicString(1)) + .OnProperty(a => a.Street).IgnoreIt(); + + var pF = pFiller.Create(); + + Assert.NotNull(pF); + Assert.NotNull(pF.Address); + Assert.Null(pF.Address.Street); + + } + + [Fact] + public void FluentTest() + { + Filler pFiller = new Filler(); + pFiller.Setup() + .OnProperty(x => x.Age).Use(() => 18) + .OnType().CreateInstanceOf
(); + + Person p = pFiller.Create(); + Assert.NotNull(p); + Assert.Equal(18, p.Age); + + } + + [Fact] + public void TestSetupForTypeOverrideSettings() + { + Filler pFiller = new Filler(); + pFiller.Setup() + .OnType().CreateInstanceOf
() + .OnType().Use(() => 1) + .SetupFor
(true); + + Person p = pFiller.Create(); + Assert.Equal(1, p.Age); + Assert.NotEqual(1, p.Address.HouseNumber); + } + + [Fact] + public void TestSetupForTypeWithoutOverrideSettings() + { + Filler pFiller = new Filler(); + pFiller.Setup() + .OnType().CreateInstanceOf
() + .OnType().Use(() => 1) + .SetupFor
(); + + Person p = pFiller.Create(); + Assert.Equal(1, p.Age); + Assert.Equal(1, p.Address.HouseNumber); + } + + [Fact] + public void TestIgnoreAllOfType() + { + Filler pFiller = new Filler(); + pFiller.Setup() + .OnType().CreateInstanceOf
() + .OnType().IgnoreIt() + ; + + Person p = pFiller.Create(); + + Assert.NotNull(p); + Assert.Null(p.FirstName); + Assert.NotNull(p.Address); + Assert.Null(p.Address.City); + } + + [Fact] + public void TestIgnoreAllOfComplexType() + { + Filler pFiller = new Filler(); + pFiller.Setup() + .OnType().CreateInstanceOf
() + .OnType
().IgnoreIt() + .OnType().IgnoreIt(); + + Person p = pFiller.Create(); + + Assert.NotNull(p); + Assert.Null(p.Address); + } + + [Fact] + public void TestIgnoreAllOfTypeDictionary() + { + Filler pFiller = new Filler(); + pFiller.Setup() + .OnType().CreateInstanceOf
() + .OnType
().IgnoreIt() + .OnType().IgnoreIt() + .OnType>().IgnoreIt(); + + Person p = pFiller.Create(); + + Assert.NotNull(p); + Assert.Null(p.Address); + Assert.Null(p.StringToIAddress); + } + + [Fact] + public void TestPropertyOrderDoNameLast() + { + Filler filler = new Filler(); + filler.Setup() + .OnProperty(x => x.Name).DoIt(At.TheEnd).UseDefault(); + + var p = filler.Create(); + + Assert.NotNull(p); + Assert.Equal(3, p.NameCount); + } + + [Fact] + public void TestPropertyOrderDoNameFirst() + { + Filler filler = new Filler(); + filler.Setup() + .OnProperty(x => x.Name).DoIt(At.TheBegin).UseDefault(); + + var p = filler.Create(); + + Assert.NotNull(p); + Assert.Equal(1, p.NameCount); + } + + } +} diff --git a/Tynamix.ObjectFiller.Test/Properties/AssemblyInfo.cs b/Tynamix.ObjectFiller.TestBCK/Properties/AssemblyInfo.cs similarity index 100% rename from Tynamix.ObjectFiller.Test/Properties/AssemblyInfo.cs rename to Tynamix.ObjectFiller.TestBCK/Properties/AssemblyInfo.cs diff --git a/Tynamix.ObjectFiller.TestBCK/RandomAccessTest.cs b/Tynamix.ObjectFiller.TestBCK/RandomAccessTest.cs new file mode 100644 index 0000000..daef080 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/RandomAccessTest.cs @@ -0,0 +1,46 @@ +namespace ObjectFiller.Test +{ + using System.Collections.Generic; + using System.Linq; + using System.Threading.Tasks; + + using Xunit; + using Tynamix.ObjectFiller; + + + public class RandomAccessTest + { + [Fact] + public void GetRandomIntOnDifferentThreadsGetsDifferentResults() + { + var numberToGenerate = 1000; + var intRange = new IntRange(1, 10); + var task1 = Task.Factory.StartNew(() => + { + var taskResults = new List(); + for (int i = 0; i < numberToGenerate; ++i) + { + taskResults.Add(Randomizer.Create(intRange)); + } + return taskResults; + }, + TaskCreationOptions.LongRunning + ); + var task2 = Task.Factory.StartNew(() => + { + var taskResults = new List(); + for (int i = 0; i < numberToGenerate; ++i) + { + taskResults.Add(Randomizer.Create(intRange)); + } + return taskResults; + }, + TaskCreationOptions.LongRunning + ); + var results = Task.WhenAll(task1, task2).Result; + var firstResults = results[0].Sum(); + var secondResults = results[1].Sum(); + Assert.NotEqual(firstResults, secondResults); + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/RandomizerPluginFake.cs b/Tynamix.ObjectFiller.TestBCK/RandomizerPluginFake.cs new file mode 100644 index 0000000..21504a7 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/RandomizerPluginFake.cs @@ -0,0 +1,31 @@ +using System; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + public class FakeRandomizerPlugin : IRandomizerPlugin + { + public Func OnGetValue; + + public T ReturnValue { get; set; } + + public FakeRandomizerPlugin() + { + } + + public FakeRandomizerPlugin(T returnValue) + { + ReturnValue = returnValue; + } + + public T GetValue() + { + if (OnGetValue != null) + { + return OnGetValue(); + } + + return ReturnValue; + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/RandomizerTest.cs b/Tynamix.ObjectFiller.TestBCK/RandomizerTest.cs new file mode 100644 index 0000000..7cd23d5 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/RandomizerTest.cs @@ -0,0 +1,98 @@ +namespace ObjectFiller.Test +{ + using System; + using System.Collections.Generic; + using System.Linq; + + using Xunit; + + using ObjectFiller.Test.TestPoco.Library; + using ObjectFiller.Test.TestPoco.Person; + + using Tynamix.ObjectFiller; + + + public class RandomizerTest + { + [Fact] + public void GetRandomInt() + { + var number = Randomizer.Create(new IntRange(1, 2)); + + Assert.True(number == 1 || number == 2); + } + + [Fact] + public void FillAllAddressProperties() + { + var a = Randomizer
.Create(); + Assert.NotNull(a.City); + Assert.NotNull(a.Country); + Assert.NotEqual(0, a.HouseNumber); + Assert.NotNull(a.PostalCode); + Assert.NotNull(a.Street); + } + + [Fact] + public void TryingToCreateAnObjectWithAnInterfaceShallFailAndHaveAnInnerexception() + { + try + { + Randomizer.Create(); + } + catch (InvalidOperationException ex) + { + Assert.NotNull(ex.InnerException); + return; + } + + // Should not reach this! + Assert.False(true); + } + + [Fact] + public void RandomizerCreatesAListOfRandomItemsIfNeeded() + { + int amount = 5; + + IEnumerable result = Randomizer.Create(amount); + + Assert.Equal(amount, result.Count()); + } + + [Fact] + public void RandomizerCreatesAListOfRandomItemsWithAPlugin() + { + int amount = 5; + + IEnumerable result = Randomizer.Create(new IntRange(1,1), amount); + + Assert.Equal(amount, result.Count()); + Assert.True(result.Count(x => x == 1) == amount); + } + + [Fact] + public void RandomizerCreatesAListOfItemBasedOnAFactory() + { + int amount = 5; + + IEnumerable result = Randomizer.Create(amount, () => 1); + + Assert.Equal(amount, result.Count()); + Assert.True(result.Count(x => x == 1) == amount); + } + + [Fact] + public void RandomizerCreatesAListOfItemBasedOnASetup() + { + int amount = 5; + + var setup = FillerSetup.Create
().OnType().Use(1).Result; + + IEnumerable
result = Randomizer
.Create(setup, amount); + + Assert.Equal(amount, result.Count()); + Assert.True(result.Count(x => x.HouseNumber == 1) == amount); + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/RangePluginTest.cs b/Tynamix.ObjectFiller.TestBCK/RangePluginTest.cs new file mode 100644 index 0000000..ae1d69d --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/RangePluginTest.cs @@ -0,0 +1,56 @@ +using System.Linq; + using Xunit; +using ObjectFiller.Test.TestPoco; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class RangePluginTest + { + [Fact] + public void TestIntRangeWithMaxValue() + { + int max = 100; + Filler> filler = new Filler>(); + + filler.Setup().OnType().Use(new IntRange(max)); + var sl = filler.Create(); + + Assert.NotNull(sl); + Assert.NotNull(sl.ChildList); + Assert.True(sl.ChildList.All(x => x < 100)); + Assert.False(sl.ChildList.All(x => x == sl.ChildList[0])); + } + + [Fact] + public void TestIntRangeWithMinMaxValue() + { + int max = 100; + int min = 50; + Filler> filler = new Filler>(); + + filler.Setup().OnType().Use(new IntRange(min, max)); + var sl = filler.Create(); + + Assert.NotNull(sl); + Assert.NotNull(sl.ChildList); + Assert.True(sl.ChildList.All(x => x >= min && x <= max)); + } + + [Fact] + public void TestFloateRangeWithMinMaxValue() + { + int max = 100; + int min = 50; + Filler> filler = new Filler>(); + + filler.Setup().OnType().Use(new FloatRange(min, max)); + var sl = filler.Create(); + + Assert.NotNull(sl); + Assert.NotNull(sl.ChildList); + Assert.True(sl.ChildList.All(x => x >= min && x <= max)); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/RealNamePluginTest.cs b/Tynamix.ObjectFiller.TestBCK/RealNamePluginTest.cs new file mode 100644 index 0000000..230e50f --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/RealNamePluginTest.cs @@ -0,0 +1,67 @@ + using Xunit; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class RealNamePluginTest + { + [Fact] + public void TestRealNameFirstNameOnly() + { + Filler filler = new Filler(); + filler.Setup() + .OnProperty(x => x.Name).Use(new RealNames(NameStyle.FirstName)); + + LibraryFillingTest.Person p = filler.Create(); + + Assert.NotNull(p); + Assert.NotNull(p.Name); + Assert.False(p.Name.Contains(" ")); + } + + [Fact] + public void TestRealNameLastNameOnly() + { + Filler filler = new Filler(); + filler.Setup() + .OnProperty(x => x.Name).Use(new RealNames(NameStyle.LastName)); + + LibraryFillingTest.Person p = filler.Create(); + + Assert.NotNull(p); + Assert.NotNull(p.Name); + Assert.False(p.Name.Contains(" ")); + } + + [Fact] + public void TestRealNameFirstNameLastName() + { + Filler filler = new Filler(); + filler.Setup() + .OnProperty(x => x.Name).Use(new RealNames(NameStyle.FirstNameLastName)); + + LibraryFillingTest.Person p = filler.Create(); + + Assert.NotNull(p); + Assert.NotNull(p.Name); + Assert.True(p.Name.Contains(" ")); + Assert.Equal(2, p.Name.Split(' ').Length); + } + + [Fact] + public void TestRealNameLastNameFirstName() + { + Filler filler = new Filler(); + filler.Setup() + .OnProperty(x => x.Name).Use(new RealNames(NameStyle.LastNameFirstName)); + + LibraryFillingTest.Person p = filler.Create(); + + Assert.NotNull(p); + Assert.NotNull(p.Name); + Assert.True(p.Name.Contains(" ")); + Assert.Equal(2, p.Name.Split(' ').Length); + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/SaveFillerSetupTest.cs b/Tynamix.ObjectFiller.TestBCK/SaveFillerSetupTest.cs new file mode 100644 index 0000000..c719e30 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/SaveFillerSetupTest.cs @@ -0,0 +1,75 @@ +using System; + using Xunit; +using ObjectFiller.Test.TestPoco.Person; +using Tynamix.ObjectFiller; + +namespace ObjectFiller.Test +{ + + public class SaveFillerSetupTest + { + + public FillerSetup GetFillerSetup() + { + + Filler filler = new Filler(); + return filler.Setup() + .OnType().CreateInstanceOf
() + .OnProperty(x => x.Age).Use(new IntRange(18, 35)) + .OnProperty(x => x.FirstName).Use(new RealNames(NameStyle.FirstName)) + .OnProperty(x => x.LastName).Use(new RealNames(NameStyle.LastName)) + .SetupFor
() + .OnProperty(x => x.HouseNumber).Use(new IntRange(1, 100)) + .Result; + + } + + [Fact] + public void UseSavedFillerDefaultSetup() + { + Filler filler = new Filler(); + filler.Setup(GetFillerSetup()); + + Person p = filler.Create(); + + Assert.True(p.Age < 35 && p.Age >= 18); + Assert.True(p.Address.HouseNumber < 100 && p.Age >= 1); + } + + + [Fact] + public void UseSavedFillerSetupWithExtensions() + { + var dateNow = DateTime.Now; + Filler filler = new Filler(); + filler.Setup(GetFillerSetup()) + .OnProperty(x => x.Birthdate).Use(() => dateNow); + + Person p = filler.Create(); + + Assert.True(p.Age < 35 && p.Age >= 18); + Assert.True(p.Address.HouseNumber < 100 && p.Age >= 1); + Assert.Equal(p.Birthdate, dateNow); + + } + + [Fact] + public void UseSavedFillerSetupWithOverrides() + { + Filler filler = new Filler(); + filler.Setup(GetFillerSetup()) + .OnProperty(x => x.Age).Use(() => 1000) + .SetupFor
() + .OnProperty(x => x.HouseNumber).Use(() => 9999); + + Person p = filler.Create(); + + Assert.Equal(p.Age, 1000); + Assert.Equal(p.Address.HouseNumber, 9999); + + } + + + + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/SequenceGeneratorTest.cs b/Tynamix.ObjectFiller.TestBCK/SequenceGeneratorTest.cs new file mode 100644 index 0000000..e3bb872 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/SequenceGeneratorTest.cs @@ -0,0 +1,331 @@ +using System; +using Xunit; +using Tynamix.ObjectFiller; +// ReSharper disable RedundantCast + +namespace ObjectFiller.Test +{ + public class SequenceGeneratorTest + { + [Fact] + public void SequenceGeneratorSByte__Should_work() + { + var generator = new SequenceGeneratorSByte(); + Assert.Equal((SByte)0, generator.GetValue()); + Assert.Equal((SByte)1, generator.GetValue()); + Assert.Equal((SByte)2, generator.GetValue()); + + generator = new SequenceGeneratorSByte { From = 3 }; + Assert.Equal((SByte)3, generator.GetValue()); + Assert.Equal((SByte)4, generator.GetValue()); + Assert.Equal((SByte)5, generator.GetValue()); + + generator = new SequenceGeneratorSByte { From = 3, Step = 3 }; + Assert.Equal((SByte)3, generator.GetValue()); + Assert.Equal((SByte)6, generator.GetValue()); + Assert.Equal((SByte)9, generator.GetValue()); + + generator = new SequenceGeneratorSByte { From = 3, Step = -3 }; + Assert.Equal((SByte)3, generator.GetValue()); + Assert.Equal((SByte)0, generator.GetValue()); + Assert.Equal((SByte)(-3), generator.GetValue()); + + generator = new SequenceGeneratorSByte { From = SByte.MaxValue - 1 }; + Assert.Equal((SByte)(SByte.MaxValue - 1), generator.GetValue()); + Assert.Equal((SByte)(SByte.MaxValue - 0), generator.GetValue()); + Assert.Equal((SByte)(SByte.MinValue + 0), generator.GetValue()); + Assert.Equal((SByte)(SByte.MinValue + 1), generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorInt16__Should_work() + { + var generator = new SequenceGeneratorInt16(); + Assert.Equal((Int16)0, generator.GetValue()); + Assert.Equal((Int16)1, generator.GetValue()); + Assert.Equal((Int16)2, generator.GetValue()); + + generator = new SequenceGeneratorInt16 { From = 3 }; + Assert.Equal((Int16)3, generator.GetValue()); + Assert.Equal((Int16)4, generator.GetValue()); + Assert.Equal((Int16)5, generator.GetValue()); + + generator = new SequenceGeneratorInt16 { From = 3, Step = 3 }; + Assert.Equal((Int16)3, generator.GetValue()); + Assert.Equal((Int16)6, generator.GetValue()); + Assert.Equal((Int16)9, generator.GetValue()); + + generator = new SequenceGeneratorInt16 { From = 3, Step = -3 }; + Assert.Equal((Int16)3, generator.GetValue()); + Assert.Equal((Int16)0, generator.GetValue()); + Assert.Equal((Int16)(-3), generator.GetValue()); + + generator = new SequenceGeneratorInt16 { From = Int16.MaxValue - 1 }; + Assert.Equal((Int16)(Int16.MaxValue - 1), generator.GetValue()); + Assert.Equal((Int16)(Int16.MaxValue - 0), generator.GetValue()); + Assert.Equal((Int16)(Int16.MinValue + 0), generator.GetValue()); + Assert.Equal((Int16)(Int16.MinValue + 1), generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorInt32__Should_work() + { + var generator = new SequenceGeneratorInt32(); + Assert.Equal((Int32)0, generator.GetValue()); + Assert.Equal((Int32)1, generator.GetValue()); + Assert.Equal((Int32)2, generator.GetValue()); + + generator = new SequenceGeneratorInt32 { From = 3 }; + Assert.Equal((Int32)3, generator.GetValue()); + Assert.Equal((Int32)4, generator.GetValue()); + Assert.Equal((Int32)5, generator.GetValue()); + + generator = new SequenceGeneratorInt32 { From = 3, Step = 3 }; + Assert.Equal((Int32)3, generator.GetValue()); + Assert.Equal((Int32)6, generator.GetValue()); + Assert.Equal((Int32)9, generator.GetValue()); + + generator = new SequenceGeneratorInt32 { From = 3, Step = -3 }; + Assert.Equal((Int32)3, generator.GetValue()); + Assert.Equal((Int32)0, generator.GetValue()); + Assert.Equal((Int32)(-3), generator.GetValue()); + + generator = new SequenceGeneratorInt32 { From = Int32.MaxValue - 1 }; + Assert.Equal((Int32)(Int32.MaxValue - 1), generator.GetValue()); + Assert.Equal((Int32)(Int32.MaxValue - 0), generator.GetValue()); + Assert.Equal((Int32)(Int32.MinValue + 0), generator.GetValue()); + Assert.Equal((Int32)(Int32.MinValue + 1), generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorInt64__Should_work() + { + var generator = new SequenceGeneratorInt64(); + Assert.Equal((Int64)0, generator.GetValue()); + Assert.Equal((Int64)1, generator.GetValue()); + Assert.Equal((Int64)2, generator.GetValue()); + + generator = new SequenceGeneratorInt64 { From = 3 }; + Assert.Equal((Int64)3, generator.GetValue()); + Assert.Equal((Int64)4, generator.GetValue()); + Assert.Equal((Int64)5, generator.GetValue()); + + generator = new SequenceGeneratorInt64 { From = 3, Step = 3 }; + Assert.Equal((Int64)3, generator.GetValue()); + Assert.Equal((Int64)6, generator.GetValue()); + Assert.Equal((Int64)9, generator.GetValue()); + + generator = new SequenceGeneratorInt64 { From = 3, Step = -3 }; + Assert.Equal((Int64)3, generator.GetValue()); + Assert.Equal((Int64)0, generator.GetValue()); + Assert.Equal((Int64)(-3), generator.GetValue()); + + generator = new SequenceGeneratorInt64 { From = Int64.MaxValue - 1 }; + Assert.Equal((Int64)(Int64.MaxValue - 1), generator.GetValue()); + Assert.Equal((Int64)(Int64.MaxValue - 0), generator.GetValue()); + Assert.Equal((Int64)(Int64.MinValue + 0), generator.GetValue()); + Assert.Equal((Int64)(Int64.MinValue + 1), generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorUInt16__Should_work() + { + var generator = new SequenceGeneratorUInt16(); + Assert.Equal((UInt16)0, generator.GetValue()); + Assert.Equal((UInt16)1, generator.GetValue()); + Assert.Equal((UInt16)2, generator.GetValue()); + + generator = new SequenceGeneratorUInt16 { From = 3 }; + Assert.Equal((UInt16)3, generator.GetValue()); + Assert.Equal((UInt16)4, generator.GetValue()); + Assert.Equal((UInt16)5, generator.GetValue()); + + generator = new SequenceGeneratorUInt16 { From = 3, Step = 3 }; + Assert.Equal((UInt16)3, generator.GetValue()); + Assert.Equal((UInt16)6, generator.GetValue()); + Assert.Equal((UInt16)9, generator.GetValue()); + + generator = new SequenceGeneratorUInt16 { From = UInt16.MaxValue - 1 }; + Assert.Equal((UInt16)(UInt16.MaxValue - 1), generator.GetValue()); + Assert.Equal((UInt16)(UInt16.MaxValue - 0), generator.GetValue()); + Assert.Equal((UInt16)(UInt16.MinValue + 0), generator.GetValue()); + Assert.Equal((UInt16)(UInt16.MinValue + 1), generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorByte__Should_work() + { + var generator = new SequenceGeneratorByte(); + Assert.Equal((Byte)0, generator.GetValue()); + Assert.Equal((Byte)1, generator.GetValue()); + Assert.Equal((Byte)2, generator.GetValue()); + + generator = new SequenceGeneratorByte { From = 3 }; + Assert.Equal((Byte)3, generator.GetValue()); + Assert.Equal((Byte)4, generator.GetValue()); + Assert.Equal((Byte)5, generator.GetValue()); + + generator = new SequenceGeneratorByte { From = 3, Step = 3 }; + Assert.Equal((Byte)3, generator.GetValue()); + Assert.Equal((Byte)6, generator.GetValue()); + Assert.Equal((Byte)9, generator.GetValue()); + + generator = new SequenceGeneratorByte { From = Byte.MaxValue - 1 }; + Assert.Equal((Byte)(Byte.MaxValue - 1), generator.GetValue()); + Assert.Equal((Byte)(Byte.MaxValue - 0), generator.GetValue()); + Assert.Equal((Byte)(Byte.MinValue + 0), generator.GetValue()); + Assert.Equal((Byte)(Byte.MinValue + 1), generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorUInt32__Should_work() + { + var generator = new SequenceGeneratorUInt32(); + Assert.Equal((UInt32)0, generator.GetValue()); + Assert.Equal((UInt32)1, generator.GetValue()); + Assert.Equal((UInt32)2, generator.GetValue()); + + generator = new SequenceGeneratorUInt32 { From = 3 }; + Assert.Equal((UInt32)3, generator.GetValue()); + Assert.Equal((UInt32)4, generator.GetValue()); + Assert.Equal((UInt32)5, generator.GetValue()); + + generator = new SequenceGeneratorUInt32 { From = 3, Step = 3 }; + Assert.Equal((UInt32)3, generator.GetValue()); + Assert.Equal((UInt32)6, generator.GetValue()); + Assert.Equal((UInt32)9, generator.GetValue()); + + generator = new SequenceGeneratorUInt32 { From = UInt32.MaxValue - 1 }; + Assert.Equal((UInt32)(UInt32.MaxValue - 1), generator.GetValue()); + Assert.Equal((UInt32)(UInt32.MaxValue - 0), generator.GetValue()); + Assert.Equal((UInt32)(UInt32.MinValue + 0), generator.GetValue()); + Assert.Equal((UInt32)(UInt32.MinValue + 1), generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorUInt64__Should_work() + { + var generator = new SequenceGeneratorUInt64(); + Assert.Equal((UInt64)0, generator.GetValue()); + Assert.Equal((UInt64)1, generator.GetValue()); + Assert.Equal((UInt64)2, generator.GetValue()); + + generator = new SequenceGeneratorUInt64 { From = 3 }; + Assert.Equal((UInt64)3, generator.GetValue()); + Assert.Equal((UInt64)4, generator.GetValue()); + Assert.Equal((UInt64)5, generator.GetValue()); + + generator = new SequenceGeneratorUInt64 { From = 3, Step = 3 }; + Assert.Equal((UInt64)3, generator.GetValue()); + Assert.Equal((UInt64)6, generator.GetValue()); + Assert.Equal((UInt64)9, generator.GetValue()); + + generator = new SequenceGeneratorUInt64 { From = UInt64.MaxValue - 1 }; + Assert.Equal((UInt64)(UInt64.MaxValue - 1), generator.GetValue()); + Assert.Equal((UInt64)(UInt64.MaxValue - 0), generator.GetValue()); + Assert.Equal((UInt64)(UInt64.MinValue + 0), generator.GetValue()); + Assert.Equal((UInt64)(UInt64.MinValue + 1), generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorChar__Should_work() + { + var generator = new SequenceGeneratorChar(); + Assert.Equal((Char)0, generator.GetValue()); + Assert.Equal((Char)1, generator.GetValue()); + Assert.Equal((Char)2, generator.GetValue()); + + generator = new SequenceGeneratorChar { From = 'A' }; + Assert.Equal((Char)'A', generator.GetValue()); + Assert.Equal((Char)'B', generator.GetValue()); + Assert.Equal((Char)'C', generator.GetValue()); + + generator = new SequenceGeneratorChar { From = 'A', Step = (Char)3 }; + Assert.Equal((Char)'A', generator.GetValue()); + Assert.Equal((Char)'D', generator.GetValue()); + Assert.Equal((Char)'G', generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorSingle__Should_work() + { + var generator = new SequenceGeneratorSingle(); + Assert.Equal((Single)0, generator.GetValue()); + Assert.Equal((Single)1, generator.GetValue()); + Assert.Equal((Single)2, generator.GetValue()); + + generator = new SequenceGeneratorSingle { From = 3 }; + Assert.Equal((Single)3, generator.GetValue()); + Assert.Equal((Single)4, generator.GetValue()); + Assert.Equal((Single)5, generator.GetValue()); + + generator = new SequenceGeneratorSingle { From = 3, Step = 3 }; + Assert.Equal((Single)3, generator.GetValue()); + Assert.Equal((Single)6, generator.GetValue()); + Assert.Equal((Single)9, generator.GetValue()); + + generator = new SequenceGeneratorSingle { From = 3, Step = -3 }; + Assert.Equal((Single)3, generator.GetValue()); + Assert.Equal((Single)0, generator.GetValue()); + Assert.Equal((Single)(-3), generator.GetValue()); + + generator = new SequenceGeneratorSingle { From = Single.MaxValue - 1 }; + Assert.Equal((Single)(Single.MaxValue - 1), generator.GetValue()); + Assert.Equal((Single)(Single.MaxValue - 0), generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorDouble__Should_work() + { + var generator = new SequenceGeneratorDouble(); + Assert.Equal((Double)0, generator.GetValue()); + Assert.Equal((Double)1, generator.GetValue()); + Assert.Equal((Double)2, generator.GetValue()); + + generator = new SequenceGeneratorDouble { From = 3 }; + Assert.Equal((Double)3, generator.GetValue()); + Assert.Equal((Double)4, generator.GetValue()); + Assert.Equal((Double)5, generator.GetValue()); + + generator = new SequenceGeneratorDouble { From = 3, Step = 3 }; + Assert.Equal((Double)3, generator.GetValue()); + Assert.Equal((Double)6, generator.GetValue()); + Assert.Equal((Double)9, generator.GetValue()); + + generator = new SequenceGeneratorDouble { From = 3, Step = -3 }; + Assert.Equal((Double)3, generator.GetValue()); + Assert.Equal((Double)0, generator.GetValue()); + Assert.Equal((Double)(-3), generator.GetValue()); + + generator = new SequenceGeneratorDouble { From = Double.MaxValue - 1 }; + Assert.Equal((Double)(Double.MaxValue - 1), generator.GetValue()); + Assert.Equal((Double)(Double.MaxValue - 0), generator.GetValue()); + } + + [Fact] + public void SequenceGeneratorDateTime__Should_work() + { + var generator = new SequenceGeneratorDateTime(); + Assert.Equal(new DateTime().AddDays(0), generator.GetValue()); + Assert.Equal(new DateTime().AddDays(1), generator.GetValue()); + Assert.Equal(new DateTime().AddDays(2), generator.GetValue()); + + var date = DateTime.Now.Date; + generator = new SequenceGeneratorDateTime { From = date }; + Assert.Equal(date.AddDays(0), generator.GetValue()); + Assert.Equal(date.AddDays(1), generator.GetValue()); + Assert.Equal(date.AddDays(2), generator.GetValue()); + + generator = new SequenceGeneratorDateTime { From = date, Step = TimeSpan.FromDays(3) }; + Assert.Equal(date.AddDays(0), generator.GetValue()); + Assert.Equal(date.AddDays(3), generator.GetValue()); + Assert.Equal(date.AddDays(6), generator.GetValue()); + + generator = new SequenceGeneratorDateTime { From = date, Step = TimeSpan.FromDays(-3) }; + Assert.Equal(date.AddDays(0), generator.GetValue()); + Assert.Equal(date.AddDays(-3), generator.GetValue()); + Assert.Equal(date.AddDays(-6), generator.GetValue()); + } + + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/SetupTests.cs b/Tynamix.ObjectFiller.TestBCK/SetupTests.cs new file mode 100644 index 0000000..8a0cc16 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/SetupTests.cs @@ -0,0 +1,135 @@ +using System; +using Xunit; + +namespace ObjectFiller.Test +{ + using Tynamix.ObjectFiller; + + + public class SetupTests + { + public class Parent + { + public Child Child { get; set; } + + public int? SomeId { get; set; } + } + + public class Child + { + public int IntValue { get; set; } + + public string StringValue { get; set; } + } + + [Fact] + public void ExplicitSetupShallJustFillPropertiesWhichAreSetUpEvenInSubtypes() + { + Filler filler = new Filler(); + filler.Setup(true) + .SetupFor().OnProperty(x => x.IntValue).Use(new IntRange(1, 20)); + + var parent = filler.Create(); + + Assert.NotNull(parent); + Assert.NotNull(parent.Child); + Assert.Null(parent.SomeId); + Assert.InRange(parent.Child.IntValue, 1, 20); + Assert.Null(parent.Child.StringValue); + } + + [Fact] + public void ExplicitSetupShallJustFillPropertiesWhichAreSetUpAndNoInstanceShallCreateForSubTypesIfNotSetup() + { + Filler filler = new Filler(); + filler.Setup(true) + .OnProperty(x => x.SomeId).Use(new IntRange(1, 20)); + + var parent = filler.Create(); + + Assert.NotNull(parent); + Assert.Null(parent.Child); + Assert.NotNull(parent.SomeId); + } + + + + [Fact] + public void RandomizerCreatesObjectsBasedOnPreviouseSetups() + { + int givenValue = Randomizer.Create(); + + var childFiller = new Filler(); + var childSetup = childFiller.Setup().OnProperty(x => x.IntValue).Use(givenValue).Result; + + var child = Randomizer.Create(childSetup); + Assert.Equal(givenValue, child.IntValue); + } + + [Fact] + public void UseSetupsAgainForPropertyConfigurations() + { + int givenValue = Randomizer.Create(); + + var childFiller = new Filler(); + var childSetup = childFiller.Setup().OnProperty(x => x.IntValue).Use(givenValue).Result; + + var parentFiller = new Filler(); + parentFiller.Setup().OnProperty(x => x.Child).Use(childSetup); + + var parent = parentFiller.Create(); + Assert.Equal(givenValue, parent.Child.IntValue); + } + + [Fact] + public void UseSetupsAgainForTypeConfigurations() + { + int givenValue = Randomizer.Create(); + + var childFiller = new Filler(); + var childSetup = childFiller.Setup().OnProperty(x => x.IntValue).Use(givenValue).Result; + + var parentFiller = new Filler(); + parentFiller.Setup().OnType().Use(childSetup); + + var parent = parentFiller.Create(); + Assert.Equal(givenValue, parent.Child.IntValue); + } + + [Fact] + public void UseSetupsAgain() + { + int givenValue = Randomizer.Create(); + + var firstChildFiller = new Filler(); + var childSetup = firstChildFiller.Setup().OnProperty(x => x.IntValue).Use(givenValue).Result; + + var secondChildFiller = new Filler(); + secondChildFiller.Setup(childSetup); + + var child = secondChildFiller.Create(); + + Assert.Equal(givenValue, child.IntValue); + } + + [Fact] + public void SetupsCanBeCreatedWithFactoryMethod() + { + var childSetup = FillerSetup.Create().OnProperty(x => x.IntValue).Use(42).Result; + + var child = Randomizer.Create(childSetup); + Assert.Equal(42, child.IntValue); + } + + [Fact] + public void SetupsCanBeCreatedWithFactoryMethodBasedOnExistingSetupManager() + { + var childSetup = FillerSetup.Create().OnProperty(x => x.IntValue).Use(42).Result; + childSetup = FillerSetup.Create(childSetup).OnProperty(x => x.StringValue).Use("Juchu").Result; + + var child = Randomizer.Create(childSetup); + Assert.Equal(42, child.IntValue); + Assert.Equal("Juchu", child.StringValue); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/StreetNamesPluginTest.cs b/Tynamix.ObjectFiller.TestBCK/StreetNamesPluginTest.cs new file mode 100644 index 0000000..6b3f398 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/StreetNamesPluginTest.cs @@ -0,0 +1,39 @@ + using Xunit; + +namespace ObjectFiller.Test +{ + using Tynamix.ObjectFiller; + + + public class StreetNamesPluginTest + { + [Fact] + public void RandomNameIsReturned() + { + var sut = new StreetName(City.Dresden); + var value = sut.GetValue(); + Assert.False(string.IsNullOrEmpty(value)); + + + sut = new StreetName(City.NewYork); + value = sut.GetValue(); + Assert.False(string.IsNullOrEmpty(value)); + + sut = new StreetName(City.London); + value = sut.GetValue(); + Assert.False(string.IsNullOrEmpty(value)); + + sut = new StreetName(City.Moscow); + value = sut.GetValue(); + Assert.False(string.IsNullOrEmpty(value)); + + sut = new StreetName(City.Paris); + value = sut.GetValue(); + Assert.False(string.IsNullOrEmpty(value)); + + sut = new StreetName(City.Tokyo); + value = sut.GetValue(); + Assert.False(string.IsNullOrEmpty(value)); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/TestIgnoranceOfInheritance.cs b/Tynamix.ObjectFiller.TestBCK/TestIgnoranceOfInheritance.cs new file mode 100644 index 0000000..ad38718 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestIgnoranceOfInheritance.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace ObjectFiller.Test +{ + using ObjectFiller.Test.TestPoco.Person; + + using Xunit; + using Tynamix.ObjectFiller; + + public class Student : Person + { + public string Class { get; set; } + } + + public class TestIgnoranceOfInheritance + { + [Fact] + public void IfIgnoreInheritanceIsSetToTrueTheNameOfTheStudentShouldBeNull() + { + Filler filler = new Filler(); + filler.Setup().IgnoreInheritance(); + var student = filler.Create(); + + Assert.Null(student.FirstName); + Assert.NotNull(student.Class); + } + + [Fact] + public void IfIgnoreInheritanceIsSetToFalseTheNameOfTheStudentShouldNotBeNull() + { + Filler filler = new Filler(); + filler.Setup() + .OnType().CreateInstanceOf
(); + var student = filler.Create(); + + Assert.NotNull(student.FirstName); + Assert.NotNull(student.Class); + } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Book.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Book.cs new file mode 100644 index 0000000..9b87334 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Book.cs @@ -0,0 +1,21 @@ +using System.Runtime.CompilerServices; + +namespace ObjectFiller.Test.TestPoco.Library +{ + public class Book : IBook + { + public Book(string name, string isbn) + { + Name = name; + ISBN = isbn; + } + + public string Name { get; set; } + + public string ISBN { get; set; } + + public string Description { get; set; } + + public double Price { get; set; } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/IBook.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/IBook.cs new file mode 100644 index 0000000..cd3f263 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/IBook.cs @@ -0,0 +1,7 @@ +namespace ObjectFiller.Test.TestPoco.Library +{ + public interface IBook + { + + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Library.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Library.cs new file mode 100644 index 0000000..9d5f2ca --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Library.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace ObjectFiller.Test.TestPoco.Library +{ + public abstract class Library + { + public ICollection Books { get; set; } + public string Name { get; set; } + public string City { get; set; } + public int CountOfBooks { get; set; } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorDictionary.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorDictionary.cs new file mode 100644 index 0000000..6f3c29e --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorDictionary.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace ObjectFiller.Test.TestPoco.Library +{ + public class LibraryConstructorDictionary : Library + { + public LibraryConstructorDictionary(Dictionary dictionary) + { + Books = new List(); + foreach (IBook book in dictionary.Keys) + { + Book b = (Book)book; + b.Name = dictionary[book]; + + Books.Add(b); + } + } + + public LibraryConstructorDictionary(Dictionary dictionary, string libName) + { + Name = libName; + Books = new List(); + foreach (Book book in dictionary.Keys) + { + book.Name = dictionary[book]; + + Books.Add(book); + } + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorList.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorList.cs new file mode 100644 index 0000000..809cbbc --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorList.cs @@ -0,0 +1,18 @@ +using System.Collections.Generic; + +namespace ObjectFiller.Test.TestPoco.Library +{ + public class LibraryConstructorList : Library + { + public LibraryConstructorList(List books, string name) + { + Books = new List(books); + Name = name; + } + + public LibraryConstructorList(List books) + { + Books = books; + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorPoco.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorPoco.cs new file mode 100644 index 0000000..cb301ff --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorPoco.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; + +namespace ObjectFiller.Test.TestPoco.Library +{ + public class LibraryConstructorPoco : Library + { + public LibraryConstructorPoco(Book book) + { + Books = new List(); + Books.Add(book); + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorWithSimple.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorWithSimple.cs new file mode 100644 index 0000000..4dff373 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorWithSimple.cs @@ -0,0 +1,12 @@ +namespace ObjectFiller.Test.TestPoco.Library +{ + public class LibraryConstructorWithSimple : Library + { + public LibraryConstructorWithSimple(string name, string city, int countOfBooks) + { + City = city; + CountOfBooks = countOfBooks; + Name = name; + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/Entity.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/Entity.cs new file mode 100644 index 0000000..d72342f --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/Entity.cs @@ -0,0 +1,9 @@ +namespace ObjectFiller.Test.TestPoco.ListTest +{ + public class Entity + { + public string Name { get; set; } + + public int Id { get; set; } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/EntityCollection.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/EntityCollection.cs new file mode 100644 index 0000000..6eaae07 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/EntityCollection.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using System.Collections.ObjectModel; + +namespace ObjectFiller.Test.TestPoco.ListTest +{ + public class EntityCollection + { + public List EntityList { get; set; } + + public IEnumerable EntityIEnumerable { get; set; } + + public ICollection EntityICollection { get; set; } + + public ObservableCollection ObservableCollection { get; set; } + + public IList EntityIList { get; set; } + + public HashSet EntityHashset { get; set; } + + public Entity[,] EntityArray { get; set; } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Address.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Address.cs new file mode 100644 index 0000000..2553f6d --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Address.cs @@ -0,0 +1,15 @@ +namespace ObjectFiller.Test.TestPoco.Person +{ + public class Address : IAddress + { + public string Street { get; set; } + + public string PostalCode { get; set; } + + public string City { get; set; } + + public string Country { get; set; } + + public int HouseNumber { get; set; } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/IAddress.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/IAddress.cs new file mode 100644 index 0000000..fc35102 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/IAddress.cs @@ -0,0 +1,7 @@ +namespace ObjectFiller.Test.TestPoco.Person +{ + public interface IAddress + { + + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/OrderedPersonProperties.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/OrderedPersonProperties.cs new file mode 100644 index 0000000..7b52c7e --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/OrderedPersonProperties.cs @@ -0,0 +1,63 @@ +namespace ObjectFiller.Test.TestPoco.Person +{ + public class OrderedPersonProperties + { + private int _currentCount = 0; + private string _name; + private int _age; + private string _lastName; + private int _nameCount; + private int _ageCount; + private int _lastNameCount; + + public string Name + { + get { return _name; } + set + { + _name = value; + _currentCount++; + _nameCount = _currentCount; + } + } + + public int Age + { + get { return _age; } + set + { + _age = value; + + _currentCount++; + _ageCount = _currentCount; + } + } + + public string LastName + { + get { return _lastName; } + set + { + _lastName = value; + _currentCount++; + _lastNameCount = _currentCount; + } + } + + + public int NameCount + { + get { return _nameCount; } + } + + public int AgeCount + { + get { return _ageCount; } + } + + public int LastNameCount + { + get { return _lastNameCount; } + } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Person.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Person.cs new file mode 100644 index 0000000..d74e46b --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Person.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +namespace ObjectFiller.Test.TestPoco.Person +{ + public class Person + { + public string FirstName { get; set; } + + public string LastName { get; private set; } + + public IList SureNames { get; set; } + + public int Age { get; set; } + + public DateTime Birthdate { get; set; } + + public Address Address { get; set; } + + public string Title { get; set; } + + public Dictionary StringToIAddress { get; set; } + + public IList Addresses { get; set; } + + public ICollection AddressCollection { get; set; } + + public Dictionary> StringToListOfAddress { get; set; } + } +} diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/SimpleList.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/SimpleList.cs new file mode 100644 index 0000000..4294aa7 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/SimpleList.cs @@ -0,0 +1,9 @@ +using System.Collections.Generic; + +namespace ObjectFiller.Test.TestPoco +{ + public class SimpleList + { + public List ChildList { get; set; } + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/TestEnum.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/TestEnum.cs new file mode 100644 index 0000000..446be83 --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/TestPoco/TestEnum.cs @@ -0,0 +1,13 @@ +namespace ObjectFiller.Test.TestPoco +{ + using System; + + [Flags] + public enum TestEnum + { + ValueOne, + ValueTwo, + ValueThree, + ValueFour + } +} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/Tynamix.ObjectFiller.Test.csproj b/Tynamix.ObjectFiller.TestBCK/Tynamix.ObjectFiller.Test.csproj new file mode 100644 index 0000000..a3f421d --- /dev/null +++ b/Tynamix.ObjectFiller.TestBCK/Tynamix.ObjectFiller.Test.csproj @@ -0,0 +1,38 @@ + + + + ObjectFiller.Test Class Library + Roman + dnx451 + Tynamix.ObjectFiller.Test + Tynamix.ObjectFiller.Test + true + false + false + false + false + false + false + + + + + + + + + + + + + + + $(DefineConstants);NET4X + + + + + + + + diff --git a/Tynamix.ObjectFiller/Tynamix.ObjectFiller.csproj b/Tynamix.ObjectFiller/Tynamix.ObjectFiller.csproj new file mode 100644 index 0000000..c3b07da --- /dev/null +++ b/Tynamix.ObjectFiller/Tynamix.ObjectFiller.csproj @@ -0,0 +1,189 @@ + + + + The Tynamix ObjectFiller.NET fills the properties of your objects with random data. Use it for unittest, prototyping and whereever you need some random testdata. It has a fluent API and is highly customizable. It supports also IEnumerables and Dictionaries and constructors WITH parameters. It is also possible to fill instances and to write private properties. + .NET ObjectFiller - Fill .NET objects with customized random data - by Tynamix + 1.5.2 + Roman Köhler;Hendrik L.;Christian Harlass;GothikX + net40;net45;net35;netstandard1.0 + Tynamix.ObjectFiller + Tynamix.ObjectFiller + objectfiller;tynamix;test;testdata;prototyp;prototyping;unittest;design;designviewmodel;generator;random;data;randomdata;testing;poco;lorem;ipsum;fakedata;fake;faker + -1.5.2 +* It is now possible to do an explicit setup (just fill properties which are configured in Filler Setup) +* IpAddress string plugin added +* Switched to .NET Core 1.0 +* Bug fixes + +-1.5.0 +* Collectionizer plugin implemented to use IRandomizer plugins in Collections +* Support for ArrayLists +* Ignore inheritance added to ignore base types of a POCO +* Optimizations in the Randomizer (thx to HerrLoesch) +* FloatRange plugin implemented (thx to HerrLoesch) +* Optimization of some Plugins +* Bug fixing + +-1.4.1 +* Fixing Bug with Multi Threaded Random Access (Thanks to blmeyers) + +-1.4.0 +* Updated to .NET Core. Now you can use ObjectFiller.NET in your .NET Core (DNX) and Windows 10 (UWP) environment! +* FillerSetup can now be used for dedicated properties or types +* Bugfixes + +-1.3.9 +* Bug fixed when creating types with a copy constructor + +-1.3.8 +* Support for Arrays and Nullable Enumerations +* Bugfixes (thx to Hendrik L.) + +-1.3.6 +* Added Randomizer<T> class to easy generate data for simple types like int, double, string +* Support for complex standalone CLR types like List<T> +* CityName plugin (Thx to Hendrik L.) +* E-Mail-Address plugin (Thx to Hendrik L.) +* StreetName plugin (Thx to Hendrik L.) +* CountryName plugin +* Code cleanup +* Bugfixes + +-1.3.2 +* Bugfixes + +-1.3.1 +* Easier usage of static values in the "Use" API +* Added missing type mappings +* Some bugfixes and improvements + +-1.3.0 +* Circular Reference Detection (thx to GothikX) +* Export the ObjectFiller setup and reuse it somewhere else +* Improved LoremIpsum Plugin (thx to GothikX) +* Many bugfixes and improvements + +-1.2.8 +* IgnoreAllUnknownTypes added +* Usage of RandomList-Plugin improved +* IntRange-Plugin handles now also nullable int! + +-1.2.4 +* Create multiple instances +* Some bugfixes and improvements + +-1.2.3 +* Use enumerables to fill objects (thx to charlass) +* Its now possible to fill enum properties (thx to charlass) +* Implemented SequenceGenerator (thx to charlass) + +-1.2.1 +* Complete refactoring of the FluentAPI. Read the documentation on objectfiller.net for more information! +* Properties with private setter are able to write. +* Renamed ObjectFiller to Filler to avoid NameSpace conflicts +* Order properties implemented +* IntRange Plugin implemented +* ...some more improvements and bugfixes + +-1.1.8 +* Bugfix in RandomizerForProperty + +-1.1.7 +* Implemented a Lorem Ipsum string plugin + +-1.1.6 +* new fantastic PatternGenerator-Plugin. Thanks to charlass for this! +* Adjust namespaces from ObjectFiller to Tynamix.ObjectFiller + +-1.1.4 +* IgnoreAllOfType added. +* Little changes to the main API + +-1.1.2 +* moved to github + +-1.1.0 +* Changed the fluent API to make it even easier than before to use. + +-1.0.22 +* Bugfix when handling lists + +-1.0.21 +* Constructors with parameters are now possible as long as the types of parameters are configured in the ObjectFiller.NET setup! + +-1.0.16 +* RandomListItem-Plugin + +-1.0.15 +* Major Bugfix + +-1.0.14 +* Bugfixes + +-1.0.12 +* RealNameListString Plugin +* DoubleMinMax plugin + +-1.0.10 +* Its now possible to ignore properties. +* Fluent API documented. +* Better ExceptionMessages +* Bugfixes + +-1.0.6 +* Its now possible to setup a randomizer to a specific property! + +-1.0.0 +* Initial release + https://raw.githubusercontent.com/gokTyBalD/ObjectFiller.NET/master/logo.png + http://objectfiller.net/ + https://github.com/Tynamix/ObjectFiller.NET/blob/master/LICENSE.txt + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + $(DefineConstants);NET4X + + + + $(DefineConstants);NET4X + + + + $(DefineConstants);NET3X + + + + $(DefineConstants);NETSTD + + + + + + + + + + + + + diff --git a/Tynamix.ObjectFiller/Tynamix.ObjectFiller.xproj b/Tynamix.ObjectFiller/Tynamix.ObjectFiller.xproj deleted file mode 100644 index c54e01e..0000000 --- a/Tynamix.ObjectFiller/Tynamix.ObjectFiller.xproj +++ /dev/null @@ -1,29 +0,0 @@ - - - - 14.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - 3208d63e-1a26-453c-8a31-03491cd23780 - Tynamix.ObjectFiller - ..\artifacts\obj\$(MSBuildProjectName) - .\bin\ - - - 2.0 - - - True - - - True - - - - - - - - \ No newline at end of file diff --git a/Tynamix.ObjectFiller/project.json b/Tynamix.ObjectFiller/project.json deleted file mode 100644 index bcc2f2c..0000000 --- a/Tynamix.ObjectFiller/project.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "title": ".NET ObjectFiller - Fill .NET objects with customized random data - by Tynamix", - "version": "1.5.2", - "description": "The Tynamix ObjectFiller.NET fills the properties of your objects with random data. Use it for unittest, prototyping and whereever you need some random testdata. It has a fluent API and is highly customizable. It supports also IEnumerables and Dictionaries and constructors WITH parameters. It is also possible to fill instances and to write private properties.", - "authors": [ "Roman Köhler", "Hendrik L.", "Christian Harlass", "GothikX" ], - "packOptions": { - "iconUrl": "https://raw.githubusercontent.com/gokTyBalD/ObjectFiller.NET/master/logo.png", - "licenseUrl": "https://github.com/Tynamix/ObjectFiller.NET/blob/master/LICENSE.txt", - "projectUrl": "http://objectfiller.net/", - "releaseNotes": "-1.5.2\r\n* It is now possible to do an explicit setup (just fill properties which are configured in Filler Setup)\r\n* IpAddress string plugin added\r\n* Switched to .NET Core 1.0\r\n* Bug fixes\r\n\r\n-1.5.0\r\n* Collectionizer plugin implemented to use IRandomizer plugins in Collections\r\n* Support for ArrayLists\r\n* Ignore inheritance added to ignore base types of a POCO\r\n* Optimizations in the Randomizer (thx to HerrLoesch)\r\n* FloatRange plugin implemented (thx to HerrLoesch)\r\n* Optimization of some Plugins\r\n* Bug fixing\r\n\r\n-1.4.1\r\n* Fixing Bug with Multi Threaded Random Access (Thanks to blmeyers)\r\n\r\n-1.4.0\r\n* Updated to .NET Core. Now you can use ObjectFiller.NET in your .NET Core (DNX) and Windows 10 (UWP) environment!\r\n* FillerSetup can now be used for dedicated properties or types\r\n* Bugfixes\r\n\r\n-1.3.9\r\n* Bug fixed when creating types with a copy constructor \r\n\r\n-1.3.8\r\n* Support for Arrays and Nullable Enumerations\r\n* Bugfixes (thx to Hendrik L.)\r\n\r\n-1.3.6\r\n* Added Randomizer class to easy generate data for simple types like int, double, string\r\n* Support for complex standalone CLR types like List\r\n* CityName plugin (Thx to Hendrik L.)\r\n* E-Mail-Address plugin (Thx to Hendrik L.)\r\n* StreetName plugin (Thx to Hendrik L.)\r\n* CountryName plugin\r\n* Code cleanup\r\n* Bugfixes\r\n\r\n-1.3.2\r\n* Bugfixes\r\n\r\n-1.3.1\r\n* Easier usage of static values in the \"Use\" API\r\n* Added missing type mappings\r\n* Some bugfixes and improvements\r\n\r\n-1.3.0\r\n* Circular Reference Detection (thx to GothikX)\r\n* Export the ObjectFiller setup and reuse it somewhere else\r\n* Improved LoremIpsum Plugin (thx to GothikX)\r\n* Many bugfixes and improvements\r\n\r\n-1.2.8\r\n* IgnoreAllUnknownTypes added\r\n* Usage of RandomList-Plugin improved\r\n* IntRange-Plugin handles now also nullable int!\r\n\r\n-1.2.4\r\n* Create multiple instances\r\n* Some bugfixes and improvements\r\n\r\n-1.2.3\r\n* Use enumerables to fill objects (thx to charlass)\r\n* Its now possible to fill enum properties (thx to charlass)\r\n* Implemented SequenceGenerator (thx to charlass)\r\n\r\n-1.2.1\r\n* Complete refactoring of the FluentAPI. Read the documentation on objectfiller.net for more information!\r\n* Properties with private setter are able to write.\r\n* Renamed ObjectFiller to Filler to avoid NameSpace conflicts\r\n* Order properties implemented\r\n* IntRange Plugin implemented\r\n* ...some more improvements and bugfixes\r\n\r\n-1.1.8\r\n* Bugfix in RandomizerForProperty\r\n\r\n-1.1.7\r\n* Implemented a Lorem Ipsum string plugin\r\n\r\n-1.1.6\r\n* new fantastic PatternGenerator-Plugin. Thanks to charlass for this!\r\n* Adjust namespaces from ObjectFiller to Tynamix.ObjectFiller\r\n\r\n-1.1.4\r\n* IgnoreAllOfType added.\r\n* Little changes to the main API\r\n\r\n-1.1.2\r\n* moved to github\r\n\r\n-1.1.0\r\n* Changed the fluent API to make it even easier than before to use.\r\n\r\n-1.0.22\r\n* Bugfix when handling lists\r\n\r\n-1.0.21\r\n* Constructors with parameters are now possible as long as the types of parameters are configured in the ObjectFiller.NET setup!\r\n\r\n-1.0.16\r\n* RandomListItem-Plugin\r\n\r\n-1.0.15\r\n* Major Bugfix\r\n\r\n-1.0.14\r\n* Bugfixes\r\n\r\n-1.0.12\r\n* RealNameListString Plugin\r\n* DoubleMinMax plugin\r\n\r\n-1.0.10\r\n* Its now possible to ignore properties.\r\n* Fluent API documented.\r\n* Better ExceptionMessages\r\n* Bugfixes\r\n\r\n-1.0.6\r\n* Its now possible to setup a randomizer to a specific property!\r\n\r\n-1.0.0\r\n* Initial release", - "summary": "The Tynamix ObjectFiller.NET fills the properties of your objects with customized random data. Use it for unittests, prototyping and whereever you need some random testdata.", - "tags": [ "objectfiller", "tynamix", "test", "testdata", "prototyp", "prototyping", "unittest", "design", "designviewmodel", "generator", "random", "data", "randomdata", "testing", "poco", "lorem", "ipsum", "fakedata", "fake", "faker" ] - }, - - "frameworks": { - "net40": { - "buildOptions": { "define": [ "NET4X" ] } - }, - "net45": { - "buildOptions": { "define": [ "NET4X" ] } - }, - "net35": { - "buildOptions": { "define": [ "NET3X" ] } - }, - "uap10.0": { - "buildOptions": { "define": [ "NETSTD" ] }, - "dependencies": { - "Microsoft.NETCore": { - "version": "5.0.0", - "type": "build" - } - } - - }, - "netstandard1.0": { - "buildOptions": { "define": [ "NETSTD" ] }, - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Linq": "4.1.0", - "System.Linq.Expressions": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Text.RegularExpressions": "4.1.0", - "System.Threading": "4.0.11" - } - - } - } -} diff --git a/Tynamix.ObjectFiller/project.lock.json b/Tynamix.ObjectFiller/project.lock.json deleted file mode 100644 index 9df619e..0000000 --- a/Tynamix.ObjectFiller/project.lock.json +++ /dev/null @@ -1,4386 +0,0 @@ -{ - "locked": false, - "version": 2, - "targets": { - ".NETFramework,Version=v3.5": {}, - ".NETFramework,Version=v4.0": {}, - ".NETFramework,Version=v4.5": {}, - ".NETStandard,Version=v1.0": { - "Microsoft.NETCore.Platforms/1.0.1": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "Microsoft.NETCore.Targets/1.0.1": { - "type": "package", - "compile": { - "lib/netstandard1.0/_._": {} - }, - "runtime": { - "lib/netstandard1.0/_._": {} - } - }, - "System.Collections/4.0.11": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Collections.dll": {} - } - }, - "System.Diagnostics.Debug/4.0.11": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Diagnostics.Debug.dll": {} - } - }, - "System.IO/4.1.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Threading.Tasks": "4.0.11" - }, - "compile": { - "ref/netstandard1.0/System.IO.dll": {} - } - }, - "System.Linq/4.1.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.11", - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Linq.dll": {} - } - }, - "System.Linq.Expressions/4.1.0": { - "type": "package", - "dependencies": { - "System.Reflection": "4.1.0", - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Linq.Expressions.dll": {} - } - }, - "System.Reflection/4.1.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.IO": "4.1.0", - "System.Reflection.Primitives": "4.0.1", - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Reflection.dll": {} - } - }, - "System.Reflection.Primitives/4.0.1": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Reflection.Primitives.dll": {} - } - }, - "System.Runtime/4.1.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1" - }, - "compile": { - "ref/netstandard1.0/System.Runtime.dll": {} - } - }, - "System.Runtime.Extensions/4.1.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Runtime.Extensions.dll": {} - } - }, - "System.Text.Encoding/4.0.11": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Text.Encoding.dll": {} - } - }, - "System.Text.RegularExpressions/4.1.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Text.RegularExpressions.dll": {} - } - }, - "System.Threading/4.0.11": { - "type": "package", - "dependencies": { - "System.Runtime": "4.1.0", - "System.Threading.Tasks": "4.0.11" - }, - "compile": { - "ref/netstandard1.0/System.Threading.dll": {} - } - }, - "System.Threading.Tasks/4.0.11": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - }, - "compile": { - "ref/netstandard1.0/System.Threading.Tasks.dll": {} - } - } - }, - "UAP,Version=v10.0": { - "Microsoft.CSharp/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Dynamic.Runtime": "4.0.0", - "System.Globalization": "4.0.10", - "System.Linq": "4.0.0", - "System.Linq.Expressions": "4.0.0", - "System.ObjectModel": "4.0.10", - "System.Reflection": "4.0.10", - "System.Reflection.Extensions": "4.0.0", - "System.Reflection.Primitives": "4.0.0", - "System.Reflection.TypeExtensions": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Runtime.InteropServices": "4.0.20", - "System.Threading": "4.0.10" - }, - "compile": { - "ref/netcore50/Microsoft.CSharp.dll": {} - }, - "runtime": { - "lib/netcore50/Microsoft.CSharp.dll": {} - } - }, - "Microsoft.NETCore/5.0.0": { - "type": "package", - "dependencies": { - "Microsoft.CSharp": "4.0.0", - "Microsoft.NETCore.Targets": "1.0.0", - "Microsoft.VisualBasic": "10.0.0", - "System.AppContext": "4.0.0", - "System.Collections": "4.0.10", - "System.Collections.Concurrent": "4.0.10", - "System.Collections.Immutable": "1.1.37", - "System.ComponentModel": "4.0.0", - "System.ComponentModel.Annotations": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Diagnostics.Tools": "4.0.0", - "System.Diagnostics.Tracing": "4.0.20", - "System.Dynamic.Runtime": "4.0.10", - "System.Globalization": "4.0.10", - "System.Globalization.Calendars": "4.0.0", - "System.Globalization.Extensions": "4.0.0", - "System.IO": "4.0.10", - "System.IO.Compression": "4.0.0", - "System.IO.Compression.ZipFile": "4.0.0", - "System.IO.FileSystem": "4.0.0", - "System.IO.FileSystem.Primitives": "4.0.0", - "System.IO.UnmanagedMemoryStream": "4.0.0", - "System.Linq": "4.0.0", - "System.Linq.Expressions": "4.0.10", - "System.Linq.Parallel": "4.0.0", - "System.Linq.Queryable": "4.0.0", - "System.Net.Http": "4.0.0", - "System.Net.NetworkInformation": "4.0.0", - "System.Net.Primitives": "4.0.10", - "System.Numerics.Vectors": "4.1.0", - "System.ObjectModel": "4.0.10", - "System.Reflection": "4.0.10", - "System.Reflection.DispatchProxy": "4.0.0", - "System.Reflection.Extensions": "4.0.0", - "System.Reflection.Metadata": "1.0.22", - "System.Reflection.Primitives": "4.0.0", - "System.Reflection.TypeExtensions": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Runtime.Handles": "4.0.0", - "System.Runtime.InteropServices": "4.0.20", - "System.Runtime.Numerics": "4.0.0", - "System.Security.Claims": "4.0.0", - "System.Security.Principal": "4.0.0", - "System.Text.Encoding": "4.0.10", - "System.Text.Encoding.Extensions": "4.0.10", - "System.Text.RegularExpressions": "4.0.10", - "System.Threading": "4.0.10", - "System.Threading.Tasks": "4.0.10", - "System.Threading.Tasks.Dataflow": "4.5.25", - "System.Threading.Tasks.Parallel": "4.0.0", - "System.Threading.Timer": "4.0.0", - "System.Xml.ReaderWriter": "4.0.10", - "System.Xml.XDocument": "4.0.10" - } - }, - "Microsoft.NETCore.Platforms/1.0.0": { - "type": "package" - }, - "Microsoft.NETCore.Targets/1.0.0": { - "type": "package", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.0", - "Microsoft.NETCore.Targets.UniversalWindowsPlatform": "5.0.0" - } - }, - "Microsoft.NETCore.Targets.UniversalWindowsPlatform/5.0.0": { - "type": "package" - }, - "Microsoft.VisualBasic/10.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Dynamic.Runtime": "4.0.10", - "System.Globalization": "4.0.10", - "System.Linq": "4.0.0", - "System.Linq.Expressions": "4.0.10", - "System.ObjectModel": "4.0.10", - "System.Reflection": "4.0.10", - "System.Reflection.Extensions": "4.0.0", - "System.Reflection.Primitives": "4.0.0", - "System.Reflection.TypeExtensions": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Runtime.InteropServices": "4.0.20", - "System.Threading": "4.0.10" - }, - "compile": { - "ref/netcore50/Microsoft.VisualBasic.dll": {} - }, - "runtime": { - "lib/netcore50/Microsoft.VisualBasic.dll": {} - } - }, - "Microsoft.Win32.Primitives/4.0.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.20", - "System.Runtime.InteropServices": "4.0.20" - }, - "compile": { - "ref/dotnet/Microsoft.Win32.Primitives.dll": {} - }, - "runtime": { - "lib/dotnet/Microsoft.Win32.Primitives.dll": {} - } - }, - "System.AppContext/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Threading": "4.0.0" - }, - "compile": { - "ref/dotnet/System.AppContext.dll": {} - }, - "runtime": { - "lib/netcore50/System.AppContext.dll": {} - } - }, - "System.Collections/4.0.10": { - "type": "package", - "dependencies": { - "System.Diagnostics.Debug": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.0", - "System.Threading": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Collections.dll": {} - }, - "runtime": { - "lib/netcore50/System.Collections.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Collections.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Collections.Concurrent/4.0.10": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Diagnostics.Tracing": "4.0.20", - "System.Globalization": "4.0.10", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Threading": "4.0.10", - "System.Threading.Tasks": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Collections.Concurrent.dll": {} - }, - "runtime": { - "lib/dotnet/System.Collections.Concurrent.dll": {} - } - }, - "System.Collections.Immutable/1.1.37": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.0", - "System.Diagnostics.Debug": "4.0.0", - "System.Globalization": "4.0.0", - "System.Linq": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.0", - "System.Runtime.Extensions": "4.0.0", - "System.Threading": "4.0.0" - }, - "compile": { - "lib/dotnet/System.Collections.Immutable.dll": {} - }, - "runtime": { - "lib/dotnet/System.Collections.Immutable.dll": {} - } - }, - "System.Collections.NonGeneric/4.0.0": { - "type": "package", - "dependencies": { - "System.Diagnostics.Debug": "4.0.10", - "System.Globalization": "4.0.10", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Threading": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Collections.NonGeneric.dll": {} - }, - "runtime": { - "lib/dotnet/System.Collections.NonGeneric.dll": {} - } - }, - "System.ComponentModel/4.0.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.20" - }, - "compile": { - "ref/netcore50/System.ComponentModel.dll": {} - }, - "runtime": { - "lib/netcore50/System.ComponentModel.dll": {} - } - }, - "System.ComponentModel.Annotations/4.0.10": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.ComponentModel": "4.0.0", - "System.Globalization": "4.0.10", - "System.Linq": "4.0.0", - "System.Reflection": "4.0.10", - "System.Reflection.Extensions": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Text.RegularExpressions": "4.0.10", - "System.Threading": "4.0.10" - }, - "compile": { - "ref/dotnet/System.ComponentModel.Annotations.dll": {} - }, - "runtime": { - "lib/dotnet/System.ComponentModel.Annotations.dll": {} - } - }, - "System.Diagnostics.Contracts/4.0.0": { - "type": "package", - "compile": { - "ref/netcore50/System.Diagnostics.Contracts.dll": {} - }, - "runtime": { - "lib/netcore50/System.Diagnostics.Contracts.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Diagnostics.Contracts.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Diagnostics.Debug/4.0.10": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Diagnostics.Debug.dll": {} - }, - "runtime": { - "lib/netcore50/System.Diagnostics.Debug.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Diagnostics.Debug.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Diagnostics.Tools/4.0.0": { - "type": "package", - "compile": { - "ref/netcore50/System.Diagnostics.Tools.dll": {} - }, - "runtime": { - "lib/netcore50/System.Diagnostics.Tools.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Diagnostics.Tools.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Diagnostics.Tracing/4.0.20": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Globalization": "4.0.0", - "System.Reflection": "4.0.10", - "System.Reflection.Extensions": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Runtime.InteropServices": "4.0.0", - "System.Text.Encoding": "4.0.0", - "System.Threading": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Diagnostics.Tracing.dll": {} - }, - "runtime": { - "lib/netcore50/System.Diagnostics.Tracing.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Diagnostics.Tracing.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Dynamic.Runtime/4.0.10": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.0", - "System.Diagnostics.Debug": "4.0.0", - "System.Globalization": "4.0.0", - "System.Linq": "4.0.0", - "System.Linq.Expressions": "4.0.10", - "System.ObjectModel": "4.0.0", - "System.Reflection": "4.0.0", - "System.Reflection.TypeExtensions": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.0", - "System.Threading": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Dynamic.Runtime.dll": {} - }, - "runtime": { - "lib/netcore50/System.Dynamic.Runtime.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Dynamic.Runtime.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Globalization/4.0.10": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Globalization.dll": {} - }, - "runtime": { - "lib/netcore50/System.Globalization.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Globalization.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Globalization.Calendars/4.0.0": { - "type": "package", - "dependencies": { - "System.Globalization": "4.0.0", - "System.Runtime": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Globalization.Calendars.dll": {} - }, - "runtime": { - "lib/netcore50/System.Globalization.Calendars.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Globalization.Calendars.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Globalization.Extensions/4.0.0": { - "type": "package", - "dependencies": { - "System.Globalization": "4.0.10", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Runtime.InteropServices": "4.0.20" - }, - "compile": { - "ref/dotnet/System.Globalization.Extensions.dll": {} - }, - "runtime": { - "lib/dotnet/System.Globalization.Extensions.dll": {} - } - }, - "System.IO/4.0.10": { - "type": "package", - "dependencies": { - "System.Globalization": "4.0.0", - "System.Runtime": "4.0.20", - "System.Text.Encoding": "4.0.10", - "System.Text.Encoding.Extensions": "4.0.0", - "System.Threading": "4.0.0", - "System.Threading.Tasks": "4.0.0" - }, - "compile": { - "ref/dotnet/System.IO.dll": {} - }, - "runtime": { - "lib/netcore50/System.IO.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.IO.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.IO.Compression/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.0", - "System.IO": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.0", - "System.Runtime.Extensions": "4.0.0", - "System.Runtime.InteropServices": "4.0.0", - "System.Text.Encoding": "4.0.0", - "System.Threading": "4.0.0", - "System.Threading.Tasks": "4.0.0" - }, - "compile": { - "ref/netcore50/System.IO.Compression.dll": {} - }, - "runtime": { - "lib/netcore50/System.IO.Compression.dll": {} - } - }, - "System.IO.Compression.ZipFile/4.0.0": { - "type": "package", - "dependencies": { - "System.IO": "4.0.10", - "System.IO.Compression": "4.0.0", - "System.IO.FileSystem": "4.0.0", - "System.IO.FileSystem.Primitives": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Text.Encoding": "4.0.10" - }, - "compile": { - "ref/dotnet/System.IO.Compression.ZipFile.dll": {} - }, - "runtime": { - "lib/dotnet/System.IO.Compression.ZipFile.dll": {} - } - }, - "System.IO.FileSystem/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.IO": "4.0.10", - "System.IO.FileSystem.Primitives": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Runtime.Handles": "4.0.0", - "System.Runtime.InteropServices": "4.0.20", - "System.Runtime.WindowsRuntime": "4.0.0", - "System.Text.Encoding": "4.0.10", - "System.Text.Encoding.Extensions": "4.0.10", - "System.Threading": "4.0.10", - "System.Threading.Overlapped": "4.0.0", - "System.Threading.Tasks": "4.0.10" - }, - "compile": { - "ref/dotnet/System.IO.FileSystem.dll": {} - }, - "runtime": { - "lib/netcore50/System.IO.FileSystem.dll": {} - } - }, - "System.IO.FileSystem.Primitives/4.0.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.20" - }, - "compile": { - "ref/dotnet/System.IO.FileSystem.Primitives.dll": {} - }, - "runtime": { - "lib/dotnet/System.IO.FileSystem.Primitives.dll": {} - } - }, - "System.IO.UnmanagedMemoryStream/4.0.0": { - "type": "package", - "dependencies": { - "System.IO": "4.0.10", - "System.IO.FileSystem.Primitives": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.InteropServices": "4.0.20", - "System.Threading": "4.0.10", - "System.Threading.Tasks": "4.0.10" - }, - "compile": { - "ref/dotnet/System.IO.UnmanagedMemoryStream.dll": {} - }, - "runtime": { - "lib/dotnet/System.IO.UnmanagedMemoryStream.dll": {} - } - }, - "System.Linq/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10" - }, - "compile": { - "ref/netcore50/System.Linq.dll": {} - }, - "runtime": { - "lib/netcore50/System.Linq.dll": {} - } - }, - "System.Linq.Expressions/4.0.10": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.0", - "System.Diagnostics.Debug": "4.0.0", - "System.Globalization": "4.0.0", - "System.IO": "4.0.0", - "System.Linq": "4.0.0", - "System.Reflection": "4.0.0", - "System.Reflection.Extensions": "4.0.0", - "System.Reflection.Primitives": "4.0.0", - "System.Reflection.TypeExtensions": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.0", - "System.Threading": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Linq.Expressions.dll": {} - }, - "runtime": { - "lib/netcore50/System.Linq.Expressions.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Linq.Expressions.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Linq.Parallel/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Collections.Concurrent": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Diagnostics.Tracing": "4.0.20", - "System.Linq": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Threading": "4.0.10", - "System.Threading.Tasks": "4.0.10" - }, - "compile": { - "ref/netcore50/System.Linq.Parallel.dll": {} - }, - "runtime": { - "lib/netcore50/System.Linq.Parallel.dll": {} - } - }, - "System.Linq.Queryable/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Linq": "4.0.0", - "System.Linq.Expressions": "4.0.10", - "System.Reflection": "4.0.10", - "System.Reflection.Extensions": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20" - }, - "compile": { - "ref/netcore50/System.Linq.Queryable.dll": {} - }, - "runtime": { - "lib/netcore50/System.Linq.Queryable.dll": {} - } - }, - "System.Net.Http/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Globalization": "4.0.10", - "System.IO": "4.0.10", - "System.Net.Primitives": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Runtime.InteropServices": "4.0.20", - "System.Runtime.WindowsRuntime": "4.0.10", - "System.Text.Encoding": "4.0.10", - "System.Text.Encoding.Extensions": "4.0.10", - "System.Threading": "4.0.10", - "System.Threading.Tasks": "4.0.10" - }, - "compile": { - "ref/netcore50/System.Net.Http.dll": {} - }, - "runtime": { - "lib/netcore50/System.Net.Http.dll": {} - } - }, - "System.Net.NetworkInformation/4.0.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.0", - "System.Runtime.InteropServices.WindowsRuntime": "4.0.0", - "System.Threading": "4.0.0" - }, - "compile": { - "ref/netcore50/System.Net.NetworkInformation.dll": {} - }, - "runtime": { - "lib/netcore50/System.Net.NetworkInformation.dll": {} - } - }, - "System.Net.Primitives/4.0.10": { - "type": "package", - "dependencies": { - "System.Private.Networking": "4.0.0", - "System.Runtime": "4.0.20" - }, - "compile": { - "ref/dotnet/System.Net.Primitives.dll": {} - }, - "runtime": { - "lib/netcore50/System.Net.Primitives.dll": {} - } - }, - "System.Numerics.Vectors/4.1.0": { - "type": "package", - "dependencies": { - "System.Globalization": "4.0.10", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Numerics.Vectors.dll": {} - }, - "runtime": { - "lib/dotnet/System.Numerics.Vectors.dll": {} - } - }, - "System.ObjectModel/4.0.10": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Threading": "4.0.10" - }, - "compile": { - "ref/dotnet/System.ObjectModel.dll": {} - }, - "runtime": { - "lib/dotnet/System.ObjectModel.dll": {} - } - }, - "System.Private.Networking/4.0.0": { - "type": "package", - "dependencies": { - "Microsoft.Win32.Primitives": "4.0.0", - "System.Collections": "4.0.10", - "System.Collections.NonGeneric": "4.0.0", - "System.Diagnostics.Debug": "4.0.10", - "System.Diagnostics.Tracing": "4.0.20", - "System.Globalization": "4.0.10", - "System.IO": "4.0.10", - "System.IO.FileSystem": "4.0.0", - "System.IO.FileSystem.Primitives": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Runtime.Handles": "4.0.0", - "System.Runtime.InteropServices": "4.0.20", - "System.Threading": "4.0.10", - "System.Threading.Overlapped": "4.0.0", - "System.Threading.Tasks": "4.0.10" - }, - "compile": { - "ref/netcore50/_._": {} - }, - "runtime": { - "lib/netcore50/System.Private.Networking.dll": {} - } - }, - "System.Private.Uri/4.0.0": { - "type": "package", - "compile": { - "ref/netcore50/_._": {} - }, - "runtime": { - "lib/netcore50/System.Private.Uri.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Private.Uri.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Reflection/4.0.10": { - "type": "package", - "dependencies": { - "System.IO": "4.0.0", - "System.Reflection.Primitives": "4.0.0", - "System.Runtime": "4.0.20" - }, - "compile": { - "ref/dotnet/System.Reflection.dll": {} - }, - "runtime": { - "lib/netcore50/System.Reflection.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Reflection.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Reflection.DispatchProxy/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Linq": "4.0.0", - "System.Reflection": "4.0.10", - "System.Reflection.Extensions": "4.0.0", - "System.Reflection.Primitives": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Threading": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Reflection.DispatchProxy.dll": {} - }, - "runtime": { - "lib/netcore50/System.Reflection.DispatchProxy.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Reflection.DispatchProxy.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Reflection.Extensions/4.0.0": { - "type": "package", - "dependencies": { - "System.Diagnostics.Debug": "4.0.10", - "System.Reflection": "4.0.10", - "System.Reflection.Primitives": "4.0.0", - "System.Reflection.TypeExtensions": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10" - }, - "compile": { - "ref/netcore50/System.Reflection.Extensions.dll": {} - }, - "runtime": { - "lib/netcore50/System.Reflection.Extensions.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Reflection.Extensions.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Reflection.Metadata/1.0.22": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.0", - "System.Collections.Immutable": "1.1.37", - "System.Diagnostics.Debug": "4.0.0", - "System.IO": "4.0.0", - "System.Reflection": "4.0.0", - "System.Reflection.Extensions": "4.0.0", - "System.Reflection.Primitives": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.0", - "System.Runtime.Extensions": "4.0.0", - "System.Runtime.InteropServices": "4.0.0", - "System.Text.Encoding": "4.0.0", - "System.Text.Encoding.Extensions": "4.0.0", - "System.Threading": "4.0.0" - }, - "compile": { - "lib/dotnet/System.Reflection.Metadata.dll": {} - }, - "runtime": { - "lib/dotnet/System.Reflection.Metadata.dll": {} - } - }, - "System.Reflection.Primitives/4.0.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.0", - "System.Threading": "4.0.0" - }, - "compile": { - "ref/netcore50/System.Reflection.Primitives.dll": {} - }, - "runtime": { - "lib/netcore50/System.Reflection.Primitives.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Reflection.Primitives.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Reflection.TypeExtensions/4.0.0": { - "type": "package", - "dependencies": { - "System.Diagnostics.Contracts": "4.0.0", - "System.Diagnostics.Debug": "4.0.10", - "System.Linq": "4.0.0", - "System.Reflection": "4.0.10", - "System.Reflection.Primitives": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Reflection.TypeExtensions.dll": {} - }, - "runtime": { - "lib/netcore50/System.Reflection.TypeExtensions.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Reflection.TypeExtensions.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Resources.ResourceManager/4.0.0": { - "type": "package", - "dependencies": { - "System.Globalization": "4.0.0", - "System.Reflection": "4.0.10", - "System.Runtime": "4.0.20" - }, - "compile": { - "ref/netcore50/System.Resources.ResourceManager.dll": {} - }, - "runtime": { - "lib/netcore50/System.Resources.ResourceManager.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Resources.ResourceManager.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Runtime/4.0.20": { - "type": "package", - "dependencies": { - "System.Private.Uri": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Runtime.dll": {} - }, - "runtime": { - "lib/netcore50/System.Runtime.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Runtime.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Runtime.Extensions/4.0.10": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.20" - }, - "compile": { - "ref/dotnet/System.Runtime.Extensions.dll": {} - }, - "runtime": { - "lib/netcore50/System.Runtime.Extensions.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Runtime.Extensions.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Runtime.Handles/4.0.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Runtime.Handles.dll": {} - }, - "runtime": { - "lib/netcore50/System.Runtime.Handles.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Runtime.Handles.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Runtime.InteropServices/4.0.20": { - "type": "package", - "dependencies": { - "System.Reflection": "4.0.0", - "System.Reflection.Primitives": "4.0.0", - "System.Runtime": "4.0.0", - "System.Runtime.Handles": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Runtime.InteropServices.dll": {} - }, - "runtime": { - "lib/netcore50/System.Runtime.InteropServices.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Runtime.InteropServices.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Runtime.InteropServices.WindowsRuntime/4.0.0": { - "type": "package", - "compile": { - "ref/netcore50/System.Runtime.InteropServices.WindowsRuntime.dll": {} - }, - "runtime": { - "lib/netcore50/System.Runtime.InteropServices.WindowsRuntime.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Runtime.InteropServices.WindowsRuntime.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Runtime.Numerics/4.0.0": { - "type": "package", - "dependencies": { - "System.Globalization": "4.0.10", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10" - }, - "compile": { - "ref/netcore50/System.Runtime.Numerics.dll": {} - }, - "runtime": { - "lib/netcore50/System.Runtime.Numerics.dll": {} - } - }, - "System.Runtime.WindowsRuntime/4.0.10": { - "type": "package", - "dependencies": { - "System.Diagnostics.Debug": "4.0.10", - "System.Globalization": "4.0.0", - "System.IO": "4.0.10", - "System.ObjectModel": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.0", - "System.Runtime.InteropServices": "4.0.20", - "System.Threading": "4.0.10", - "System.Threading.Tasks": "4.0.10" - }, - "compile": { - "ref/netcore50/System.Runtime.WindowsRuntime.dll": {} - }, - "runtime": { - "lib/netcore50/System.Runtime.WindowsRuntime.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Runtime.WindowsRuntime.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Security.Claims/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.0", - "System.Diagnostics.Debug": "4.0.0", - "System.Globalization": "4.0.0", - "System.IO": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.0", - "System.Security.Principal": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Security.Claims.dll": {} - }, - "runtime": { - "lib/dotnet/System.Security.Claims.dll": {} - } - }, - "System.Security.Principal/4.0.0": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.0" - }, - "compile": { - "ref/netcore50/System.Security.Principal.dll": {} - }, - "runtime": { - "lib/netcore50/System.Security.Principal.dll": {} - } - }, - "System.Text.Encoding/4.0.10": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Text.Encoding.dll": {} - }, - "runtime": { - "lib/netcore50/System.Text.Encoding.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Text.Encoding.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Text.Encoding.Extensions/4.0.10": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.0", - "System.Text.Encoding": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Text.Encoding.Extensions.dll": {} - }, - "runtime": { - "lib/netcore50/System.Text.Encoding.Extensions.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Text.Encoding.Extensions.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Text.RegularExpressions/4.0.10": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Globalization": "4.0.10", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Threading": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Text.RegularExpressions.dll": {} - }, - "runtime": { - "lib/dotnet/System.Text.RegularExpressions.dll": {} - } - }, - "System.Threading/4.0.10": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.0", - "System.Threading.Tasks": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Threading.dll": {} - }, - "runtime": { - "lib/netcore50/System.Threading.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Threading.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Threading.Overlapped/4.0.0": { - "type": "package", - "dependencies": { - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.0", - "System.Runtime.Handles": "4.0.0", - "System.Runtime.InteropServices": "4.0.20", - "System.Threading": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Threading.Overlapped.dll": {} - }, - "runtime": { - "lib/netcore50/System.Threading.Overlapped.dll": {} - } - }, - "System.Threading.Tasks/4.0.10": { - "type": "package", - "dependencies": { - "System.Runtime": "4.0.0" - }, - "compile": { - "ref/dotnet/System.Threading.Tasks.dll": {} - }, - "runtime": { - "lib/netcore50/System.Threading.Tasks.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Threading.Tasks.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Threading.Tasks.Dataflow/4.5.25": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.0", - "System.Collections.Concurrent": "4.0.0", - "System.Diagnostics.Debug": "4.0.0", - "System.Diagnostics.Tracing": "4.0.0", - "System.Dynamic.Runtime": "4.0.0", - "System.Linq": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.0", - "System.Runtime.Extensions": "4.0.0", - "System.Threading": "4.0.0", - "System.Threading.Tasks": "4.0.0" - }, - "compile": { - "lib/dotnet/System.Threading.Tasks.Dataflow.dll": {} - }, - "runtime": { - "lib/dotnet/System.Threading.Tasks.Dataflow.dll": {} - } - }, - "System.Threading.Tasks.Parallel/4.0.0": { - "type": "package", - "dependencies": { - "System.Collections.Concurrent": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Diagnostics.Tracing": "4.0.20", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Threading": "4.0.10", - "System.Threading.Tasks": "4.0.10" - }, - "compile": { - "ref/netcore50/System.Threading.Tasks.Parallel.dll": {} - }, - "runtime": { - "lib/netcore50/System.Threading.Tasks.Parallel.dll": {} - } - }, - "System.Threading.Timer/4.0.0": { - "type": "package", - "compile": { - "ref/netcore50/System.Threading.Timer.dll": {} - }, - "runtime": { - "lib/netcore50/System.Threading.Timer.dll": {} - }, - "runtimeTargets": { - "runtimes/win8-aot/lib/netcore50/System.Threading.Timer.dll": { - "assetType": "runtime", - "rid": "win8-aot" - } - } - }, - "System.Xml.ReaderWriter/4.0.10": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Globalization": "4.0.10", - "System.IO": "4.0.10", - "System.IO.FileSystem": "4.0.0", - "System.IO.FileSystem.Primitives": "4.0.0", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Runtime.InteropServices": "4.0.20", - "System.Text.Encoding": "4.0.10", - "System.Text.Encoding.Extensions": "4.0.10", - "System.Text.RegularExpressions": "4.0.10", - "System.Threading.Tasks": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Xml.ReaderWriter.dll": {} - }, - "runtime": { - "lib/dotnet/System.Xml.ReaderWriter.dll": {} - } - }, - "System.Xml.XDocument/4.0.10": { - "type": "package", - "dependencies": { - "System.Collections": "4.0.10", - "System.Diagnostics.Debug": "4.0.10", - "System.Globalization": "4.0.10", - "System.IO": "4.0.10", - "System.Reflection": "4.0.10", - "System.Resources.ResourceManager": "4.0.0", - "System.Runtime": "4.0.20", - "System.Runtime.Extensions": "4.0.10", - "System.Text.Encoding": "4.0.10", - "System.Threading": "4.0.10", - "System.Xml.ReaderWriter": "4.0.10" - }, - "compile": { - "ref/dotnet/System.Xml.XDocument.dll": {} - }, - "runtime": { - "lib/dotnet/System.Xml.XDocument.dll": {} - } - } - } - }, - "libraries": { - "Microsoft.CSharp/4.0.0": { - "sha512": "oWqeKUxHXdK6dL2CFjgMcaBISbkk+AqEg+yvJHE4DElNzS4QaTsCflgkkqZwVlWby1Dg9zo9n+iCAMFefFdJ/A==", - "type": "package", - "files": [ - "Microsoft.CSharp.4.0.0.nupkg", - "Microsoft.CSharp.4.0.0.nupkg.sha512", - "Microsoft.CSharp.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/Microsoft.CSharp.dll", - "lib/net45/_._", - "lib/netcore50/Microsoft.CSharp.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/Microsoft.CSharp.dll", - "ref/dotnet/Microsoft.CSharp.xml", - "ref/dotnet/de/Microsoft.CSharp.xml", - "ref/dotnet/es/Microsoft.CSharp.xml", - "ref/dotnet/fr/Microsoft.CSharp.xml", - "ref/dotnet/it/Microsoft.CSharp.xml", - "ref/dotnet/ja/Microsoft.CSharp.xml", - "ref/dotnet/ko/Microsoft.CSharp.xml", - "ref/dotnet/ru/Microsoft.CSharp.xml", - "ref/dotnet/zh-hans/Microsoft.CSharp.xml", - "ref/dotnet/zh-hant/Microsoft.CSharp.xml", - "ref/net45/_._", - "ref/netcore50/Microsoft.CSharp.dll", - "ref/netcore50/Microsoft.CSharp.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "Microsoft.NETCore/5.0.0": { - "sha512": "QQMp0yYQbIdfkKhdEE6Umh2Xonau7tasG36Trw/YlHoWgYQLp7T9L+ZD8EPvdj5ubRhtOuKEKwM7HMpkagB9ZA==", - "type": "package", - "files": [ - "Microsoft.NETCore.5.0.0.nupkg", - "Microsoft.NETCore.5.0.0.nupkg.sha512", - "Microsoft.NETCore.nuspec", - "_._" - ] - }, - "Microsoft.NETCore.Platforms/1.0.0": { - "sha512": "0N77OwGZpXqUco2C/ynv1os7HqdFYifvNIbveLDKqL5PZaz05Rl9enCwVBjF61aumHKueLWIJ3prnmdAXxww4A==", - "type": "package", - "files": [ - "Microsoft.NETCore.Platforms.1.0.0.nupkg", - "Microsoft.NETCore.Platforms.1.0.0.nupkg.sha512", - "Microsoft.NETCore.Platforms.nuspec", - "runtime.json" - ] - }, - "Microsoft.NETCore.Platforms/1.0.1": { - "sha512": "2G6OjjJzwBfNOO8myRV/nFrbTw5iA+DEm0N+qUqhrOmaVtn4pC77h38I1jsXGw5VH55+dPfQsqHD0We9sCl9FQ==", - "type": "package", - "path": "Microsoft.NETCore.Platforms/1.0.1", - "files": [ - "Microsoft.NETCore.Platforms.1.0.1.nupkg.sha512", - "Microsoft.NETCore.Platforms.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "runtime.json" - ] - }, - "Microsoft.NETCore.Targets/1.0.0": { - "sha512": "XfITpPjYLYRmAeZtb9diw6P7ylLQsSC1U2a/xj10iQpnHxkiLEBXop/psw15qMPuNca7lqgxWvzZGpQxphuXaw==", - "type": "package", - "files": [ - "Microsoft.NETCore.Targets.1.0.0.nupkg", - "Microsoft.NETCore.Targets.1.0.0.nupkg.sha512", - "Microsoft.NETCore.Targets.nuspec", - "runtime.json" - ] - }, - "Microsoft.NETCore.Targets/1.0.1": { - "sha512": "rkn+fKobF/cbWfnnfBOQHKVKIOpxMZBvlSHkqDWgBpwGDcLRduvs3D9OLGeV6GWGvVwNlVi2CBbTjuPmtHvyNw==", - "type": "package", - "path": "Microsoft.NETCore.Targets/1.0.1", - "files": [ - "Microsoft.NETCore.Targets.1.0.1.nupkg.sha512", - "Microsoft.NETCore.Targets.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/netstandard1.0/_._", - "runtime.json" - ] - }, - "Microsoft.NETCore.Targets.UniversalWindowsPlatform/5.0.0": { - "sha512": "jszcJ6okLlhqF4OQbhSbixLOuLUyVT3BP7Y7/i7fcDMwnHBd1Pmdz6M1Al9SMDKVLA2oSaItg4tq6C0ydv8lYQ==", - "type": "package", - "files": [ - "Microsoft.NETCore.Targets.UniversalWindowsPlatform.5.0.0.nupkg", - "Microsoft.NETCore.Targets.UniversalWindowsPlatform.5.0.0.nupkg.sha512", - "Microsoft.NETCore.Targets.UniversalWindowsPlatform.nuspec", - "runtime.json" - ] - }, - "Microsoft.VisualBasic/10.0.0": { - "sha512": "5BEm2/HAVd97whRlCChU7rmSh/9cwGlZ/NTNe3Jl07zuPWfKQq5TUvVNUmdvmEe8QRecJLZ4/e7WF1i1O8V42g==", - "type": "package", - "files": [ - "Microsoft.VisualBasic.10.0.0.nupkg", - "Microsoft.VisualBasic.10.0.0.nupkg.sha512", - "Microsoft.VisualBasic.nuspec", - "lib/dotnet/Microsoft.VisualBasic.dll", - "lib/net45/_._", - "lib/netcore50/Microsoft.VisualBasic.dll", - "lib/win8/_._", - "lib/wpa81/_._", - "ref/dotnet/Microsoft.VisualBasic.dll", - "ref/dotnet/Microsoft.VisualBasic.xml", - "ref/dotnet/de/Microsoft.VisualBasic.xml", - "ref/dotnet/es/Microsoft.VisualBasic.xml", - "ref/dotnet/fr/Microsoft.VisualBasic.xml", - "ref/dotnet/it/Microsoft.VisualBasic.xml", - "ref/dotnet/ja/Microsoft.VisualBasic.xml", - "ref/dotnet/ko/Microsoft.VisualBasic.xml", - "ref/dotnet/ru/Microsoft.VisualBasic.xml", - "ref/dotnet/zh-hans/Microsoft.VisualBasic.xml", - "ref/dotnet/zh-hant/Microsoft.VisualBasic.xml", - "ref/net45/_._", - "ref/netcore50/Microsoft.VisualBasic.dll", - "ref/netcore50/Microsoft.VisualBasic.xml", - "ref/win8/_._", - "ref/wpa81/_._" - ] - }, - "Microsoft.Win32.Primitives/4.0.0": { - "sha512": "CypEz9/lLOup8CEhiAmvr7aLs1zKPYyEU1sxQeEr6G0Ci8/F0Y6pYR1zzkROjM8j8Mq0typmbu676oYyvErQvg==", - "type": "package", - "files": [ - "Microsoft.Win32.Primitives.4.0.0.nupkg", - "Microsoft.Win32.Primitives.4.0.0.nupkg.sha512", - "Microsoft.Win32.Primitives.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/Microsoft.Win32.Primitives.dll", - "lib/net46/Microsoft.Win32.Primitives.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/Microsoft.Win32.Primitives.dll", - "ref/dotnet/Microsoft.Win32.Primitives.xml", - "ref/dotnet/de/Microsoft.Win32.Primitives.xml", - "ref/dotnet/es/Microsoft.Win32.Primitives.xml", - "ref/dotnet/fr/Microsoft.Win32.Primitives.xml", - "ref/dotnet/it/Microsoft.Win32.Primitives.xml", - "ref/dotnet/ja/Microsoft.Win32.Primitives.xml", - "ref/dotnet/ko/Microsoft.Win32.Primitives.xml", - "ref/dotnet/ru/Microsoft.Win32.Primitives.xml", - "ref/dotnet/zh-hans/Microsoft.Win32.Primitives.xml", - "ref/dotnet/zh-hant/Microsoft.Win32.Primitives.xml", - "ref/net46/Microsoft.Win32.Primitives.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.AppContext/4.0.0": { - "sha512": "gUoYgAWDC3+xhKeU5KSLbYDhTdBYk9GssrMSCcWUADzOglW+s0AmwVhOUGt2tL5xUl7ZXoYTPdA88zCgKrlG0A==", - "type": "package", - "files": [ - "System.AppContext.4.0.0.nupkg", - "System.AppContext.4.0.0.nupkg.sha512", - "System.AppContext.nuspec", - "lib/DNXCore50/System.AppContext.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.AppContext.dll", - "lib/netcore50/System.AppContext.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.AppContext.dll", - "ref/dotnet/System.AppContext.xml", - "ref/dotnet/de/System.AppContext.xml", - "ref/dotnet/es/System.AppContext.xml", - "ref/dotnet/fr/System.AppContext.xml", - "ref/dotnet/it/System.AppContext.xml", - "ref/dotnet/ja/System.AppContext.xml", - "ref/dotnet/ko/System.AppContext.xml", - "ref/dotnet/ru/System.AppContext.xml", - "ref/dotnet/zh-hans/System.AppContext.xml", - "ref/dotnet/zh-hant/System.AppContext.xml", - "ref/net46/System.AppContext.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.Collections/4.0.10": { - "sha512": "ux6ilcZZjV/Gp7JEZpe+2V1eTueq6NuoGRM3eZCFuPM25hLVVgCRuea6STW8hvqreIOE59irJk5/ovpA5xQipw==", - "type": "package", - "files": [ - "System.Collections.4.0.10.nupkg", - "System.Collections.4.0.10.nupkg.sha512", - "System.Collections.nuspec", - "lib/DNXCore50/System.Collections.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Collections.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Collections.dll", - "ref/dotnet/System.Collections.xml", - "ref/dotnet/de/System.Collections.xml", - "ref/dotnet/es/System.Collections.xml", - "ref/dotnet/fr/System.Collections.xml", - "ref/dotnet/it/System.Collections.xml", - "ref/dotnet/ja/System.Collections.xml", - "ref/dotnet/ko/System.Collections.xml", - "ref/dotnet/ru/System.Collections.xml", - "ref/dotnet/zh-hans/System.Collections.xml", - "ref/dotnet/zh-hant/System.Collections.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Collections.dll" - ] - }, - "System.Collections/4.0.11": { - "sha512": "YUJGz6eFKqS0V//mLt25vFGrrCvOnsXjlvFQs+KimpwNxug9x0Pzy4PlFMU3Q2IzqAa9G2L4LsK3+9vCBK7oTg==", - "type": "package", - "path": "System.Collections/4.0.11", - "files": [ - "System.Collections.4.0.11.nupkg.sha512", - "System.Collections.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Collections.dll", - "ref/netcore50/System.Collections.xml", - "ref/netcore50/de/System.Collections.xml", - "ref/netcore50/es/System.Collections.xml", - "ref/netcore50/fr/System.Collections.xml", - "ref/netcore50/it/System.Collections.xml", - "ref/netcore50/ja/System.Collections.xml", - "ref/netcore50/ko/System.Collections.xml", - "ref/netcore50/ru/System.Collections.xml", - "ref/netcore50/zh-hans/System.Collections.xml", - "ref/netcore50/zh-hant/System.Collections.xml", - "ref/netstandard1.0/System.Collections.dll", - "ref/netstandard1.0/System.Collections.xml", - "ref/netstandard1.0/de/System.Collections.xml", - "ref/netstandard1.0/es/System.Collections.xml", - "ref/netstandard1.0/fr/System.Collections.xml", - "ref/netstandard1.0/it/System.Collections.xml", - "ref/netstandard1.0/ja/System.Collections.xml", - "ref/netstandard1.0/ko/System.Collections.xml", - "ref/netstandard1.0/ru/System.Collections.xml", - "ref/netstandard1.0/zh-hans/System.Collections.xml", - "ref/netstandard1.0/zh-hant/System.Collections.xml", - "ref/netstandard1.3/System.Collections.dll", - "ref/netstandard1.3/System.Collections.xml", - "ref/netstandard1.3/de/System.Collections.xml", - "ref/netstandard1.3/es/System.Collections.xml", - "ref/netstandard1.3/fr/System.Collections.xml", - "ref/netstandard1.3/it/System.Collections.xml", - "ref/netstandard1.3/ja/System.Collections.xml", - "ref/netstandard1.3/ko/System.Collections.xml", - "ref/netstandard1.3/ru/System.Collections.xml", - "ref/netstandard1.3/zh-hans/System.Collections.xml", - "ref/netstandard1.3/zh-hant/System.Collections.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Collections.Concurrent/4.0.10": { - "sha512": "ZtMEqOPAjAIqR8fqom9AOKRaB94a+emO2O8uOP6vyJoNswSPrbiwN7iH53rrVpvjMVx0wr4/OMpI7486uGZjbw==", - "type": "package", - "files": [ - "System.Collections.Concurrent.4.0.10.nupkg", - "System.Collections.Concurrent.4.0.10.nupkg.sha512", - "System.Collections.Concurrent.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.Collections.Concurrent.dll", - "lib/net46/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Collections.Concurrent.dll", - "ref/dotnet/System.Collections.Concurrent.xml", - "ref/dotnet/de/System.Collections.Concurrent.xml", - "ref/dotnet/es/System.Collections.Concurrent.xml", - "ref/dotnet/fr/System.Collections.Concurrent.xml", - "ref/dotnet/it/System.Collections.Concurrent.xml", - "ref/dotnet/ja/System.Collections.Concurrent.xml", - "ref/dotnet/ko/System.Collections.Concurrent.xml", - "ref/dotnet/ru/System.Collections.Concurrent.xml", - "ref/dotnet/zh-hans/System.Collections.Concurrent.xml", - "ref/dotnet/zh-hant/System.Collections.Concurrent.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.Collections.Immutable/1.1.37": { - "sha512": "fTpqwZYBzoklTT+XjTRK8KxvmrGkYHzBiylCcKyQcxiOM8k+QvhNBxRvFHDWzy4OEP5f8/9n+xQ9mEgEXY+muA==", - "type": "package", - "files": [ - "System.Collections.Immutable.1.1.37.nupkg", - "System.Collections.Immutable.1.1.37.nupkg.sha512", - "System.Collections.Immutable.nuspec", - "lib/dotnet/System.Collections.Immutable.dll", - "lib/dotnet/System.Collections.Immutable.xml", - "lib/portable-net45+win8+wp8+wpa81/System.Collections.Immutable.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Collections.Immutable.xml" - ] - }, - "System.Collections.NonGeneric/4.0.0": { - "sha512": "rVgwrFBMkmp8LI6GhAYd6Bx+2uLIXjRfNg6Ie+ASfX8ESuh9e2HNxFy2yh1MPIXZq3OAYa+0mmULVwpnEC6UDA==", - "type": "package", - "files": [ - "System.Collections.NonGeneric.4.0.0.nupkg", - "System.Collections.NonGeneric.4.0.0.nupkg.sha512", - "System.Collections.NonGeneric.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.Collections.NonGeneric.dll", - "lib/net46/System.Collections.NonGeneric.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Collections.NonGeneric.dll", - "ref/dotnet/System.Collections.NonGeneric.xml", - "ref/dotnet/de/System.Collections.NonGeneric.xml", - "ref/dotnet/es/System.Collections.NonGeneric.xml", - "ref/dotnet/fr/System.Collections.NonGeneric.xml", - "ref/dotnet/it/System.Collections.NonGeneric.xml", - "ref/dotnet/ja/System.Collections.NonGeneric.xml", - "ref/dotnet/ko/System.Collections.NonGeneric.xml", - "ref/dotnet/ru/System.Collections.NonGeneric.xml", - "ref/dotnet/zh-hans/System.Collections.NonGeneric.xml", - "ref/dotnet/zh-hant/System.Collections.NonGeneric.xml", - "ref/net46/System.Collections.NonGeneric.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.ComponentModel/4.0.0": { - "sha512": "BzpLdSi++ld7rJLOOt5f/G9GxujP202bBgKORsHcGV36rLB0mfSA2h8chTMoBzFhgN7TE14TmJ2J7Q1RyNCTAw==", - "type": "package", - "files": [ - "System.ComponentModel.4.0.0.nupkg", - "System.ComponentModel.4.0.0.nupkg.sha512", - "System.ComponentModel.nuspec", - "lib/dotnet/System.ComponentModel.dll", - "lib/net45/_._", - "lib/netcore50/System.ComponentModel.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "ref/dotnet/System.ComponentModel.dll", - "ref/dotnet/System.ComponentModel.xml", - "ref/dotnet/de/System.ComponentModel.xml", - "ref/dotnet/es/System.ComponentModel.xml", - "ref/dotnet/fr/System.ComponentModel.xml", - "ref/dotnet/it/System.ComponentModel.xml", - "ref/dotnet/ja/System.ComponentModel.xml", - "ref/dotnet/ko/System.ComponentModel.xml", - "ref/dotnet/ru/System.ComponentModel.xml", - "ref/dotnet/zh-hans/System.ComponentModel.xml", - "ref/dotnet/zh-hant/System.ComponentModel.xml", - "ref/net45/_._", - "ref/netcore50/System.ComponentModel.dll", - "ref/netcore50/System.ComponentModel.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._" - ] - }, - "System.ComponentModel.Annotations/4.0.10": { - "sha512": "7+XGyEZx24nP1kpHxCB9e+c6D0fdVDvFwE1xujE9BzlXyNVcy5J5aIO0H/ECupx21QpyRvzZibGAHfL/XLL6dw==", - "type": "package", - "files": [ - "System.ComponentModel.Annotations.4.0.10.nupkg", - "System.ComponentModel.Annotations.4.0.10.nupkg.sha512", - "System.ComponentModel.Annotations.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.ComponentModel.Annotations.dll", - "lib/net46/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.ComponentModel.Annotations.dll", - "ref/dotnet/System.ComponentModel.Annotations.xml", - "ref/dotnet/de/System.ComponentModel.Annotations.xml", - "ref/dotnet/es/System.ComponentModel.Annotations.xml", - "ref/dotnet/fr/System.ComponentModel.Annotations.xml", - "ref/dotnet/it/System.ComponentModel.Annotations.xml", - "ref/dotnet/ja/System.ComponentModel.Annotations.xml", - "ref/dotnet/ko/System.ComponentModel.Annotations.xml", - "ref/dotnet/ru/System.ComponentModel.Annotations.xml", - "ref/dotnet/zh-hans/System.ComponentModel.Annotations.xml", - "ref/dotnet/zh-hant/System.ComponentModel.Annotations.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.Diagnostics.Contracts/4.0.0": { - "sha512": "lMc7HNmyIsu0pKTdA4wf+FMq5jvouUd+oUpV4BdtyqoV0Pkbg9u/7lTKFGqpjZRQosWHq1+B32Lch2wf4AmloA==", - "type": "package", - "files": [ - "System.Diagnostics.Contracts.4.0.0.nupkg", - "System.Diagnostics.Contracts.4.0.0.nupkg.sha512", - "System.Diagnostics.Contracts.nuspec", - "lib/DNXCore50/System.Diagnostics.Contracts.dll", - "lib/net45/_._", - "lib/netcore50/System.Diagnostics.Contracts.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Diagnostics.Contracts.dll", - "ref/dotnet/System.Diagnostics.Contracts.xml", - "ref/dotnet/de/System.Diagnostics.Contracts.xml", - "ref/dotnet/es/System.Diagnostics.Contracts.xml", - "ref/dotnet/fr/System.Diagnostics.Contracts.xml", - "ref/dotnet/it/System.Diagnostics.Contracts.xml", - "ref/dotnet/ja/System.Diagnostics.Contracts.xml", - "ref/dotnet/ko/System.Diagnostics.Contracts.xml", - "ref/dotnet/ru/System.Diagnostics.Contracts.xml", - "ref/dotnet/zh-hans/System.Diagnostics.Contracts.xml", - "ref/dotnet/zh-hant/System.Diagnostics.Contracts.xml", - "ref/net45/_._", - "ref/netcore50/System.Diagnostics.Contracts.dll", - "ref/netcore50/System.Diagnostics.Contracts.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "runtimes/win8-aot/lib/netcore50/System.Diagnostics.Contracts.dll" - ] - }, - "System.Diagnostics.Debug/4.0.10": { - "sha512": "pi2KthuvI2LWV2c2V+fwReDsDiKpNl040h6DcwFOb59SafsPT/V1fCy0z66OKwysurJkBMmp5j5CBe3Um+ub0g==", - "type": "package", - "files": [ - "System.Diagnostics.Debug.4.0.10.nupkg", - "System.Diagnostics.Debug.4.0.10.nupkg.sha512", - "System.Diagnostics.Debug.nuspec", - "lib/DNXCore50/System.Diagnostics.Debug.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Diagnostics.Debug.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Diagnostics.Debug.dll", - "ref/dotnet/System.Diagnostics.Debug.xml", - "ref/dotnet/de/System.Diagnostics.Debug.xml", - "ref/dotnet/es/System.Diagnostics.Debug.xml", - "ref/dotnet/fr/System.Diagnostics.Debug.xml", - "ref/dotnet/it/System.Diagnostics.Debug.xml", - "ref/dotnet/ja/System.Diagnostics.Debug.xml", - "ref/dotnet/ko/System.Diagnostics.Debug.xml", - "ref/dotnet/ru/System.Diagnostics.Debug.xml", - "ref/dotnet/zh-hans/System.Diagnostics.Debug.xml", - "ref/dotnet/zh-hant/System.Diagnostics.Debug.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Diagnostics.Debug.dll" - ] - }, - "System.Diagnostics.Debug/4.0.11": { - "sha512": "w5U95fVKHY4G8ASs/K5iK3J5LY+/dLFd4vKejsnI/ZhBsWS9hQakfx3Zr7lRWKg4tAw9r4iktyvsTagWkqYCiw==", - "type": "package", - "path": "System.Diagnostics.Debug/4.0.11", - "files": [ - "System.Diagnostics.Debug.4.0.11.nupkg.sha512", - "System.Diagnostics.Debug.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Diagnostics.Debug.dll", - "ref/netcore50/System.Diagnostics.Debug.xml", - "ref/netcore50/de/System.Diagnostics.Debug.xml", - "ref/netcore50/es/System.Diagnostics.Debug.xml", - "ref/netcore50/fr/System.Diagnostics.Debug.xml", - "ref/netcore50/it/System.Diagnostics.Debug.xml", - "ref/netcore50/ja/System.Diagnostics.Debug.xml", - "ref/netcore50/ko/System.Diagnostics.Debug.xml", - "ref/netcore50/ru/System.Diagnostics.Debug.xml", - "ref/netcore50/zh-hans/System.Diagnostics.Debug.xml", - "ref/netcore50/zh-hant/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/System.Diagnostics.Debug.dll", - "ref/netstandard1.0/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/de/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/es/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/fr/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/it/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/ja/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/ko/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/ru/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/zh-hans/System.Diagnostics.Debug.xml", - "ref/netstandard1.0/zh-hant/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/System.Diagnostics.Debug.dll", - "ref/netstandard1.3/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/de/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/es/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/fr/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/it/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/ja/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/ko/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/ru/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/zh-hans/System.Diagnostics.Debug.xml", - "ref/netstandard1.3/zh-hant/System.Diagnostics.Debug.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Diagnostics.Tools/4.0.0": { - "sha512": "uw5Qi2u5Cgtv4xv3+8DeB63iaprPcaEHfpeJqlJiLjIVy6v0La4ahJ6VW9oPbJNIjcavd24LKq0ctT9ssuQXsw==", - "type": "package", - "files": [ - "System.Diagnostics.Tools.4.0.0.nupkg", - "System.Diagnostics.Tools.4.0.0.nupkg.sha512", - "System.Diagnostics.Tools.nuspec", - "lib/DNXCore50/System.Diagnostics.Tools.dll", - "lib/net45/_._", - "lib/netcore50/System.Diagnostics.Tools.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Diagnostics.Tools.dll", - "ref/dotnet/System.Diagnostics.Tools.xml", - "ref/dotnet/de/System.Diagnostics.Tools.xml", - "ref/dotnet/es/System.Diagnostics.Tools.xml", - "ref/dotnet/fr/System.Diagnostics.Tools.xml", - "ref/dotnet/it/System.Diagnostics.Tools.xml", - "ref/dotnet/ja/System.Diagnostics.Tools.xml", - "ref/dotnet/ko/System.Diagnostics.Tools.xml", - "ref/dotnet/ru/System.Diagnostics.Tools.xml", - "ref/dotnet/zh-hans/System.Diagnostics.Tools.xml", - "ref/dotnet/zh-hant/System.Diagnostics.Tools.xml", - "ref/net45/_._", - "ref/netcore50/System.Diagnostics.Tools.dll", - "ref/netcore50/System.Diagnostics.Tools.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "runtimes/win8-aot/lib/netcore50/System.Diagnostics.Tools.dll" - ] - }, - "System.Diagnostics.Tracing/4.0.20": { - "sha512": "gn/wexGHc35Fv++5L1gYHMY5g25COfiZ0PGrL+3PfwzoJd4X2LbTAm/U8d385SI6BKQBI/z4dQfvneS9J27+Tw==", - "type": "package", - "files": [ - "System.Diagnostics.Tracing.4.0.20.nupkg", - "System.Diagnostics.Tracing.4.0.20.nupkg.sha512", - "System.Diagnostics.Tracing.nuspec", - "lib/DNXCore50/System.Diagnostics.Tracing.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Diagnostics.Tracing.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Diagnostics.Tracing.dll", - "ref/dotnet/System.Diagnostics.Tracing.xml", - "ref/dotnet/de/System.Diagnostics.Tracing.xml", - "ref/dotnet/es/System.Diagnostics.Tracing.xml", - "ref/dotnet/fr/System.Diagnostics.Tracing.xml", - "ref/dotnet/it/System.Diagnostics.Tracing.xml", - "ref/dotnet/ja/System.Diagnostics.Tracing.xml", - "ref/dotnet/ko/System.Diagnostics.Tracing.xml", - "ref/dotnet/ru/System.Diagnostics.Tracing.xml", - "ref/dotnet/zh-hans/System.Diagnostics.Tracing.xml", - "ref/dotnet/zh-hant/System.Diagnostics.Tracing.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Diagnostics.Tracing.dll" - ] - }, - "System.Dynamic.Runtime/4.0.10": { - "sha512": "r10VTLdlxtYp46BuxomHnwx7vIoMOr04CFoC/jJJfY22f7HQQ4P+cXY2Nxo6/rIxNNqOxwdbQQwv7Gl88Jsu1w==", - "type": "package", - "files": [ - "System.Dynamic.Runtime.4.0.10.nupkg", - "System.Dynamic.Runtime.4.0.10.nupkg.sha512", - "System.Dynamic.Runtime.nuspec", - "lib/DNXCore50/System.Dynamic.Runtime.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Dynamic.Runtime.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Dynamic.Runtime.dll", - "ref/dotnet/System.Dynamic.Runtime.xml", - "ref/dotnet/de/System.Dynamic.Runtime.xml", - "ref/dotnet/es/System.Dynamic.Runtime.xml", - "ref/dotnet/fr/System.Dynamic.Runtime.xml", - "ref/dotnet/it/System.Dynamic.Runtime.xml", - "ref/dotnet/ja/System.Dynamic.Runtime.xml", - "ref/dotnet/ko/System.Dynamic.Runtime.xml", - "ref/dotnet/ru/System.Dynamic.Runtime.xml", - "ref/dotnet/zh-hans/System.Dynamic.Runtime.xml", - "ref/dotnet/zh-hant/System.Dynamic.Runtime.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtime.json", - "runtimes/win8-aot/lib/netcore50/System.Dynamic.Runtime.dll" - ] - }, - "System.Globalization/4.0.10": { - "sha512": "kzRtbbCNAxdafFBDogcM36ehA3th8c1PGiz8QRkZn8O5yMBorDHSK8/TGJPYOaCS5zdsGk0u9qXHnW91nqy7fw==", - "type": "package", - "files": [ - "System.Globalization.4.0.10.nupkg", - "System.Globalization.4.0.10.nupkg.sha512", - "System.Globalization.nuspec", - "lib/DNXCore50/System.Globalization.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Globalization.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Globalization.dll", - "ref/dotnet/System.Globalization.xml", - "ref/dotnet/de/System.Globalization.xml", - "ref/dotnet/es/System.Globalization.xml", - "ref/dotnet/fr/System.Globalization.xml", - "ref/dotnet/it/System.Globalization.xml", - "ref/dotnet/ja/System.Globalization.xml", - "ref/dotnet/ko/System.Globalization.xml", - "ref/dotnet/ru/System.Globalization.xml", - "ref/dotnet/zh-hans/System.Globalization.xml", - "ref/dotnet/zh-hant/System.Globalization.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Globalization.dll" - ] - }, - "System.Globalization.Calendars/4.0.0": { - "sha512": "cL6WrdGKnNBx9W/iTr+jbffsEO4RLjEtOYcpVSzPNDoli6X5Q6bAfWtJYbJNOPi8Q0fXgBEvKK1ncFL/3FTqlA==", - "type": "package", - "files": [ - "System.Globalization.Calendars.4.0.0.nupkg", - "System.Globalization.Calendars.4.0.0.nupkg.sha512", - "System.Globalization.Calendars.nuspec", - "lib/DNXCore50/System.Globalization.Calendars.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Globalization.Calendars.dll", - "lib/netcore50/System.Globalization.Calendars.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Globalization.Calendars.dll", - "ref/dotnet/System.Globalization.Calendars.xml", - "ref/dotnet/de/System.Globalization.Calendars.xml", - "ref/dotnet/es/System.Globalization.Calendars.xml", - "ref/dotnet/fr/System.Globalization.Calendars.xml", - "ref/dotnet/it/System.Globalization.Calendars.xml", - "ref/dotnet/ja/System.Globalization.Calendars.xml", - "ref/dotnet/ko/System.Globalization.Calendars.xml", - "ref/dotnet/ru/System.Globalization.Calendars.xml", - "ref/dotnet/zh-hans/System.Globalization.Calendars.xml", - "ref/dotnet/zh-hant/System.Globalization.Calendars.xml", - "ref/net46/System.Globalization.Calendars.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Globalization.Calendars.dll" - ] - }, - "System.Globalization.Extensions/4.0.0": { - "sha512": "rqbUXiwpBCvJ18ySCsjh20zleazO+6fr3s5GihC2sVwhyS0MUl6+oc5Rzk0z6CKkS4kmxbZQSeZLsK7cFSO0ng==", - "type": "package", - "files": [ - "System.Globalization.Extensions.4.0.0.nupkg", - "System.Globalization.Extensions.4.0.0.nupkg.sha512", - "System.Globalization.Extensions.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.Globalization.Extensions.dll", - "lib/net46/System.Globalization.Extensions.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Globalization.Extensions.dll", - "ref/dotnet/System.Globalization.Extensions.xml", - "ref/dotnet/de/System.Globalization.Extensions.xml", - "ref/dotnet/es/System.Globalization.Extensions.xml", - "ref/dotnet/fr/System.Globalization.Extensions.xml", - "ref/dotnet/it/System.Globalization.Extensions.xml", - "ref/dotnet/ja/System.Globalization.Extensions.xml", - "ref/dotnet/ko/System.Globalization.Extensions.xml", - "ref/dotnet/ru/System.Globalization.Extensions.xml", - "ref/dotnet/zh-hans/System.Globalization.Extensions.xml", - "ref/dotnet/zh-hant/System.Globalization.Extensions.xml", - "ref/net46/System.Globalization.Extensions.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.IO/4.0.10": { - "sha512": "kghf1CeYT+W2lw8a50/GxFz5HR9t6RkL4BvjxtTp1NxtEFWywnMA9W8FH/KYXiDNThcw9u/GOViDON4iJFGXIQ==", - "type": "package", - "files": [ - "System.IO.4.0.10.nupkg", - "System.IO.4.0.10.nupkg.sha512", - "System.IO.nuspec", - "lib/DNXCore50/System.IO.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.IO.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.IO.dll", - "ref/dotnet/System.IO.xml", - "ref/dotnet/de/System.IO.xml", - "ref/dotnet/es/System.IO.xml", - "ref/dotnet/fr/System.IO.xml", - "ref/dotnet/it/System.IO.xml", - "ref/dotnet/ja/System.IO.xml", - "ref/dotnet/ko/System.IO.xml", - "ref/dotnet/ru/System.IO.xml", - "ref/dotnet/zh-hans/System.IO.xml", - "ref/dotnet/zh-hant/System.IO.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.IO.dll" - ] - }, - "System.IO/4.1.0": { - "sha512": "3KlTJceQc3gnGIaHZ7UBZO26SHL1SHE4ddrmiwumFnId+CEHP+O8r386tZKaE6zlk5/mF8vifMBzHj9SaXN+mQ==", - "type": "package", - "path": "System.IO/4.1.0", - "files": [ - "System.IO.4.1.0.nupkg.sha512", - "System.IO.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.IO.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.IO.dll", - "ref/netcore50/System.IO.dll", - "ref/netcore50/System.IO.xml", - "ref/netcore50/de/System.IO.xml", - "ref/netcore50/es/System.IO.xml", - "ref/netcore50/fr/System.IO.xml", - "ref/netcore50/it/System.IO.xml", - "ref/netcore50/ja/System.IO.xml", - "ref/netcore50/ko/System.IO.xml", - "ref/netcore50/ru/System.IO.xml", - "ref/netcore50/zh-hans/System.IO.xml", - "ref/netcore50/zh-hant/System.IO.xml", - "ref/netstandard1.0/System.IO.dll", - "ref/netstandard1.0/System.IO.xml", - "ref/netstandard1.0/de/System.IO.xml", - "ref/netstandard1.0/es/System.IO.xml", - "ref/netstandard1.0/fr/System.IO.xml", - "ref/netstandard1.0/it/System.IO.xml", - "ref/netstandard1.0/ja/System.IO.xml", - "ref/netstandard1.0/ko/System.IO.xml", - "ref/netstandard1.0/ru/System.IO.xml", - "ref/netstandard1.0/zh-hans/System.IO.xml", - "ref/netstandard1.0/zh-hant/System.IO.xml", - "ref/netstandard1.3/System.IO.dll", - "ref/netstandard1.3/System.IO.xml", - "ref/netstandard1.3/de/System.IO.xml", - "ref/netstandard1.3/es/System.IO.xml", - "ref/netstandard1.3/fr/System.IO.xml", - "ref/netstandard1.3/it/System.IO.xml", - "ref/netstandard1.3/ja/System.IO.xml", - "ref/netstandard1.3/ko/System.IO.xml", - "ref/netstandard1.3/ru/System.IO.xml", - "ref/netstandard1.3/zh-hans/System.IO.xml", - "ref/netstandard1.3/zh-hant/System.IO.xml", - "ref/netstandard1.5/System.IO.dll", - "ref/netstandard1.5/System.IO.xml", - "ref/netstandard1.5/de/System.IO.xml", - "ref/netstandard1.5/es/System.IO.xml", - "ref/netstandard1.5/fr/System.IO.xml", - "ref/netstandard1.5/it/System.IO.xml", - "ref/netstandard1.5/ja/System.IO.xml", - "ref/netstandard1.5/ko/System.IO.xml", - "ref/netstandard1.5/ru/System.IO.xml", - "ref/netstandard1.5/zh-hans/System.IO.xml", - "ref/netstandard1.5/zh-hant/System.IO.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.IO.Compression/4.0.0": { - "sha512": "S+ljBE3py8pujTrsOOYHtDg2cnAifn6kBu/pfh1hMWIXd8DoVh0ADTA6Puv4q+nYj+Msm6JoFLNwuRSmztbsDQ==", - "type": "package", - "files": [ - "System.IO.Compression.4.0.0.nupkg", - "System.IO.Compression.4.0.0.nupkg.sha512", - "System.IO.Compression.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.IO.Compression.dll", - "lib/net45/_._", - "lib/netcore50/System.IO.Compression.dll", - "lib/win8/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.IO.Compression.dll", - "ref/dotnet/System.IO.Compression.xml", - "ref/dotnet/de/System.IO.Compression.xml", - "ref/dotnet/es/System.IO.Compression.xml", - "ref/dotnet/fr/System.IO.Compression.xml", - "ref/dotnet/it/System.IO.Compression.xml", - "ref/dotnet/ja/System.IO.Compression.xml", - "ref/dotnet/ko/System.IO.Compression.xml", - "ref/dotnet/ru/System.IO.Compression.xml", - "ref/dotnet/zh-hans/System.IO.Compression.xml", - "ref/dotnet/zh-hant/System.IO.Compression.xml", - "ref/net45/_._", - "ref/netcore50/System.IO.Compression.dll", - "ref/netcore50/System.IO.Compression.xml", - "ref/win8/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtime.json" - ] - }, - "System.IO.Compression.ZipFile/4.0.0": { - "sha512": "pwntmtsJqtt6Lez4Iyv4GVGW6DaXUTo9Rnlsx0MFagRgX+8F/sxG5S/IzDJabBj68sUWViz1QJrRZL4V9ngWDg==", - "type": "package", - "files": [ - "System.IO.Compression.ZipFile.4.0.0.nupkg", - "System.IO.Compression.ZipFile.4.0.0.nupkg.sha512", - "System.IO.Compression.ZipFile.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.IO.Compression.ZipFile.dll", - "lib/net46/System.IO.Compression.ZipFile.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.IO.Compression.ZipFile.dll", - "ref/dotnet/System.IO.Compression.ZipFile.xml", - "ref/dotnet/de/System.IO.Compression.ZipFile.xml", - "ref/dotnet/es/System.IO.Compression.ZipFile.xml", - "ref/dotnet/fr/System.IO.Compression.ZipFile.xml", - "ref/dotnet/it/System.IO.Compression.ZipFile.xml", - "ref/dotnet/ja/System.IO.Compression.ZipFile.xml", - "ref/dotnet/ko/System.IO.Compression.ZipFile.xml", - "ref/dotnet/ru/System.IO.Compression.ZipFile.xml", - "ref/dotnet/zh-hans/System.IO.Compression.ZipFile.xml", - "ref/dotnet/zh-hant/System.IO.Compression.ZipFile.xml", - "ref/net46/System.IO.Compression.ZipFile.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.IO.FileSystem/4.0.0": { - "sha512": "eo05SPWfG+54UA0wxgRIYOuOslq+2QrJLXZaJDDsfLXG15OLguaItW39NYZTqUb4DeGOkU4R0wpOLOW4ynMUDQ==", - "type": "package", - "files": [ - "System.IO.FileSystem.4.0.0.nupkg", - "System.IO.FileSystem.4.0.0.nupkg.sha512", - "System.IO.FileSystem.nuspec", - "lib/DNXCore50/System.IO.FileSystem.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.IO.FileSystem.dll", - "lib/netcore50/System.IO.FileSystem.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.IO.FileSystem.dll", - "ref/dotnet/System.IO.FileSystem.xml", - "ref/dotnet/de/System.IO.FileSystem.xml", - "ref/dotnet/es/System.IO.FileSystem.xml", - "ref/dotnet/fr/System.IO.FileSystem.xml", - "ref/dotnet/it/System.IO.FileSystem.xml", - "ref/dotnet/ja/System.IO.FileSystem.xml", - "ref/dotnet/ko/System.IO.FileSystem.xml", - "ref/dotnet/ru/System.IO.FileSystem.xml", - "ref/dotnet/zh-hans/System.IO.FileSystem.xml", - "ref/dotnet/zh-hant/System.IO.FileSystem.xml", - "ref/net46/System.IO.FileSystem.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.IO.FileSystem.Primitives/4.0.0": { - "sha512": "7pJUvYi/Yq3A5nagqCCiOw3+aJp3xXc/Cjr8dnJDnER3/6kX3LEencfqmXUcPl9+7OvRNyPMNhqsLAcMK6K/KA==", - "type": "package", - "files": [ - "System.IO.FileSystem.Primitives.4.0.0.nupkg", - "System.IO.FileSystem.Primitives.4.0.0.nupkg.sha512", - "System.IO.FileSystem.Primitives.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.IO.FileSystem.Primitives.dll", - "lib/net46/System.IO.FileSystem.Primitives.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.IO.FileSystem.Primitives.dll", - "ref/dotnet/System.IO.FileSystem.Primitives.xml", - "ref/dotnet/de/System.IO.FileSystem.Primitives.xml", - "ref/dotnet/es/System.IO.FileSystem.Primitives.xml", - "ref/dotnet/fr/System.IO.FileSystem.Primitives.xml", - "ref/dotnet/it/System.IO.FileSystem.Primitives.xml", - "ref/dotnet/ja/System.IO.FileSystem.Primitives.xml", - "ref/dotnet/ko/System.IO.FileSystem.Primitives.xml", - "ref/dotnet/ru/System.IO.FileSystem.Primitives.xml", - "ref/dotnet/zh-hans/System.IO.FileSystem.Primitives.xml", - "ref/dotnet/zh-hant/System.IO.FileSystem.Primitives.xml", - "ref/net46/System.IO.FileSystem.Primitives.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.IO.UnmanagedMemoryStream/4.0.0": { - "sha512": "i2xczgQfwHmolORBNHxV9b5izP8VOBxgSA2gf+H55xBvwqtR+9r9adtzlc7at0MAwiLcsk6V1TZlv2vfRQr8Sw==", - "type": "package", - "files": [ - "System.IO.UnmanagedMemoryStream.4.0.0.nupkg", - "System.IO.UnmanagedMemoryStream.4.0.0.nupkg.sha512", - "System.IO.UnmanagedMemoryStream.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.IO.UnmanagedMemoryStream.dll", - "lib/net46/System.IO.UnmanagedMemoryStream.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.IO.UnmanagedMemoryStream.dll", - "ref/dotnet/System.IO.UnmanagedMemoryStream.xml", - "ref/dotnet/de/System.IO.UnmanagedMemoryStream.xml", - "ref/dotnet/es/System.IO.UnmanagedMemoryStream.xml", - "ref/dotnet/fr/System.IO.UnmanagedMemoryStream.xml", - "ref/dotnet/it/System.IO.UnmanagedMemoryStream.xml", - "ref/dotnet/ja/System.IO.UnmanagedMemoryStream.xml", - "ref/dotnet/ko/System.IO.UnmanagedMemoryStream.xml", - "ref/dotnet/ru/System.IO.UnmanagedMemoryStream.xml", - "ref/dotnet/zh-hans/System.IO.UnmanagedMemoryStream.xml", - "ref/dotnet/zh-hant/System.IO.UnmanagedMemoryStream.xml", - "ref/net46/System.IO.UnmanagedMemoryStream.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.Linq/4.0.0": { - "sha512": "r6Hlc+ytE6m/9UBr+nNRRdoJEWjoeQiT3L3lXYFDHoXk3VYsRBCDNXrawcexw7KPLaH0zamQLiAb6avhZ50cGg==", - "type": "package", - "files": [ - "System.Linq.4.0.0.nupkg", - "System.Linq.4.0.0.nupkg.sha512", - "System.Linq.nuspec", - "lib/dotnet/System.Linq.dll", - "lib/net45/_._", - "lib/netcore50/System.Linq.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Linq.dll", - "ref/dotnet/System.Linq.xml", - "ref/dotnet/de/System.Linq.xml", - "ref/dotnet/es/System.Linq.xml", - "ref/dotnet/fr/System.Linq.xml", - "ref/dotnet/it/System.Linq.xml", - "ref/dotnet/ja/System.Linq.xml", - "ref/dotnet/ko/System.Linq.xml", - "ref/dotnet/ru/System.Linq.xml", - "ref/dotnet/zh-hans/System.Linq.xml", - "ref/dotnet/zh-hant/System.Linq.xml", - "ref/net45/_._", - "ref/netcore50/System.Linq.dll", - "ref/netcore50/System.Linq.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._" - ] - }, - "System.Linq/4.1.0": { - "sha512": "bQ0iYFOQI0nuTnt+NQADns6ucV4DUvMdwN6CbkB1yj8i7arTGiTN5eok1kQwdnnNWSDZfIUySQY+J3d5KjWn0g==", - "type": "package", - "path": "System.Linq/4.1.0", - "files": [ - "System.Linq.4.1.0.nupkg.sha512", - "System.Linq.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net463/System.Linq.dll", - "lib/netcore50/System.Linq.dll", - "lib/netstandard1.6/System.Linq.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net463/System.Linq.dll", - "ref/netcore50/System.Linq.dll", - "ref/netcore50/System.Linq.xml", - "ref/netcore50/de/System.Linq.xml", - "ref/netcore50/es/System.Linq.xml", - "ref/netcore50/fr/System.Linq.xml", - "ref/netcore50/it/System.Linq.xml", - "ref/netcore50/ja/System.Linq.xml", - "ref/netcore50/ko/System.Linq.xml", - "ref/netcore50/ru/System.Linq.xml", - "ref/netcore50/zh-hans/System.Linq.xml", - "ref/netcore50/zh-hant/System.Linq.xml", - "ref/netstandard1.0/System.Linq.dll", - "ref/netstandard1.0/System.Linq.xml", - "ref/netstandard1.0/de/System.Linq.xml", - "ref/netstandard1.0/es/System.Linq.xml", - "ref/netstandard1.0/fr/System.Linq.xml", - "ref/netstandard1.0/it/System.Linq.xml", - "ref/netstandard1.0/ja/System.Linq.xml", - "ref/netstandard1.0/ko/System.Linq.xml", - "ref/netstandard1.0/ru/System.Linq.xml", - "ref/netstandard1.0/zh-hans/System.Linq.xml", - "ref/netstandard1.0/zh-hant/System.Linq.xml", - "ref/netstandard1.6/System.Linq.dll", - "ref/netstandard1.6/System.Linq.xml", - "ref/netstandard1.6/de/System.Linq.xml", - "ref/netstandard1.6/es/System.Linq.xml", - "ref/netstandard1.6/fr/System.Linq.xml", - "ref/netstandard1.6/it/System.Linq.xml", - "ref/netstandard1.6/ja/System.Linq.xml", - "ref/netstandard1.6/ko/System.Linq.xml", - "ref/netstandard1.6/ru/System.Linq.xml", - "ref/netstandard1.6/zh-hans/System.Linq.xml", - "ref/netstandard1.6/zh-hant/System.Linq.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Linq.Expressions/4.0.10": { - "sha512": "qhFkPqRsTfXBaacjQhxwwwUoU7TEtwlBIULj7nG7i4qAkvivil31VvOvDKppCSui5yGw0/325ZeNaMYRvTotXw==", - "type": "package", - "files": [ - "System.Linq.Expressions.4.0.10.nupkg", - "System.Linq.Expressions.4.0.10.nupkg.sha512", - "System.Linq.Expressions.nuspec", - "lib/DNXCore50/System.Linq.Expressions.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Linq.Expressions.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Linq.Expressions.dll", - "ref/dotnet/System.Linq.Expressions.xml", - "ref/dotnet/de/System.Linq.Expressions.xml", - "ref/dotnet/es/System.Linq.Expressions.xml", - "ref/dotnet/fr/System.Linq.Expressions.xml", - "ref/dotnet/it/System.Linq.Expressions.xml", - "ref/dotnet/ja/System.Linq.Expressions.xml", - "ref/dotnet/ko/System.Linq.Expressions.xml", - "ref/dotnet/ru/System.Linq.Expressions.xml", - "ref/dotnet/zh-hans/System.Linq.Expressions.xml", - "ref/dotnet/zh-hant/System.Linq.Expressions.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtime.json", - "runtimes/win8-aot/lib/netcore50/System.Linq.Expressions.dll" - ] - }, - "System.Linq.Expressions/4.1.0": { - "sha512": "I+y02iqkgmCAyfbqOmSDOgqdZQ5tTj80Akm5BPSS8EeB0VGWdy6X1KCoYe8Pk6pwDoAKZUOdLVxnTJcExiv5zw==", - "type": "package", - "path": "System.Linq.Expressions/4.1.0", - "files": [ - "System.Linq.Expressions.4.1.0.nupkg.sha512", - "System.Linq.Expressions.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net463/System.Linq.Expressions.dll", - "lib/netcore50/System.Linq.Expressions.dll", - "lib/netstandard1.6/System.Linq.Expressions.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net463/System.Linq.Expressions.dll", - "ref/netcore50/System.Linq.Expressions.dll", - "ref/netcore50/System.Linq.Expressions.xml", - "ref/netcore50/de/System.Linq.Expressions.xml", - "ref/netcore50/es/System.Linq.Expressions.xml", - "ref/netcore50/fr/System.Linq.Expressions.xml", - "ref/netcore50/it/System.Linq.Expressions.xml", - "ref/netcore50/ja/System.Linq.Expressions.xml", - "ref/netcore50/ko/System.Linq.Expressions.xml", - "ref/netcore50/ru/System.Linq.Expressions.xml", - "ref/netcore50/zh-hans/System.Linq.Expressions.xml", - "ref/netcore50/zh-hant/System.Linq.Expressions.xml", - "ref/netstandard1.0/System.Linq.Expressions.dll", - "ref/netstandard1.0/System.Linq.Expressions.xml", - "ref/netstandard1.0/de/System.Linq.Expressions.xml", - "ref/netstandard1.0/es/System.Linq.Expressions.xml", - "ref/netstandard1.0/fr/System.Linq.Expressions.xml", - "ref/netstandard1.0/it/System.Linq.Expressions.xml", - "ref/netstandard1.0/ja/System.Linq.Expressions.xml", - "ref/netstandard1.0/ko/System.Linq.Expressions.xml", - "ref/netstandard1.0/ru/System.Linq.Expressions.xml", - "ref/netstandard1.0/zh-hans/System.Linq.Expressions.xml", - "ref/netstandard1.0/zh-hant/System.Linq.Expressions.xml", - "ref/netstandard1.3/System.Linq.Expressions.dll", - "ref/netstandard1.3/System.Linq.Expressions.xml", - "ref/netstandard1.3/de/System.Linq.Expressions.xml", - "ref/netstandard1.3/es/System.Linq.Expressions.xml", - "ref/netstandard1.3/fr/System.Linq.Expressions.xml", - "ref/netstandard1.3/it/System.Linq.Expressions.xml", - "ref/netstandard1.3/ja/System.Linq.Expressions.xml", - "ref/netstandard1.3/ko/System.Linq.Expressions.xml", - "ref/netstandard1.3/ru/System.Linq.Expressions.xml", - "ref/netstandard1.3/zh-hans/System.Linq.Expressions.xml", - "ref/netstandard1.3/zh-hant/System.Linq.Expressions.xml", - "ref/netstandard1.6/System.Linq.Expressions.dll", - "ref/netstandard1.6/System.Linq.Expressions.xml", - "ref/netstandard1.6/de/System.Linq.Expressions.xml", - "ref/netstandard1.6/es/System.Linq.Expressions.xml", - "ref/netstandard1.6/fr/System.Linq.Expressions.xml", - "ref/netstandard1.6/it/System.Linq.Expressions.xml", - "ref/netstandard1.6/ja/System.Linq.Expressions.xml", - "ref/netstandard1.6/ko/System.Linq.Expressions.xml", - "ref/netstandard1.6/ru/System.Linq.Expressions.xml", - "ref/netstandard1.6/zh-hans/System.Linq.Expressions.xml", - "ref/netstandard1.6/zh-hant/System.Linq.Expressions.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "runtimes/aot/lib/netcore50/System.Linq.Expressions.dll" - ] - }, - "System.Linq.Parallel/4.0.0": { - "sha512": "PtH7KKh1BbzVow4XY17pnrn7Io63ApMdwzRE2o2HnzsKQD/0o7X5xe6mxrDUqTm9ZCR3/PNhAlP13VY1HnHsbA==", - "type": "package", - "files": [ - "System.Linq.Parallel.4.0.0.nupkg", - "System.Linq.Parallel.4.0.0.nupkg.sha512", - "System.Linq.Parallel.nuspec", - "lib/dotnet/System.Linq.Parallel.dll", - "lib/net45/_._", - "lib/netcore50/System.Linq.Parallel.dll", - "lib/win8/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Linq.Parallel.dll", - "ref/dotnet/System.Linq.Parallel.xml", - "ref/dotnet/de/System.Linq.Parallel.xml", - "ref/dotnet/es/System.Linq.Parallel.xml", - "ref/dotnet/fr/System.Linq.Parallel.xml", - "ref/dotnet/it/System.Linq.Parallel.xml", - "ref/dotnet/ja/System.Linq.Parallel.xml", - "ref/dotnet/ko/System.Linq.Parallel.xml", - "ref/dotnet/ru/System.Linq.Parallel.xml", - "ref/dotnet/zh-hans/System.Linq.Parallel.xml", - "ref/dotnet/zh-hant/System.Linq.Parallel.xml", - "ref/net45/_._", - "ref/netcore50/System.Linq.Parallel.dll", - "ref/netcore50/System.Linq.Parallel.xml", - "ref/win8/_._", - "ref/wpa81/_._" - ] - }, - "System.Linq.Queryable/4.0.0": { - "sha512": "DIlvCNn3ucFvwMMzXcag4aFnFJ1fdxkQ5NqwJe9Nh7y8ozzhDm07YakQL/yoF3P1dLzY1T2cTpuwbAmVSdXyBA==", - "type": "package", - "files": [ - "System.Linq.Queryable.4.0.0.nupkg", - "System.Linq.Queryable.4.0.0.nupkg.sha512", - "System.Linq.Queryable.nuspec", - "lib/dotnet/System.Linq.Queryable.dll", - "lib/net45/_._", - "lib/netcore50/System.Linq.Queryable.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Linq.Queryable.dll", - "ref/dotnet/System.Linq.Queryable.xml", - "ref/dotnet/de/System.Linq.Queryable.xml", - "ref/dotnet/es/System.Linq.Queryable.xml", - "ref/dotnet/fr/System.Linq.Queryable.xml", - "ref/dotnet/it/System.Linq.Queryable.xml", - "ref/dotnet/ja/System.Linq.Queryable.xml", - "ref/dotnet/ko/System.Linq.Queryable.xml", - "ref/dotnet/ru/System.Linq.Queryable.xml", - "ref/dotnet/zh-hans/System.Linq.Queryable.xml", - "ref/dotnet/zh-hant/System.Linq.Queryable.xml", - "ref/net45/_._", - "ref/netcore50/System.Linq.Queryable.dll", - "ref/netcore50/System.Linq.Queryable.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._" - ] - }, - "System.Net.Http/4.0.0": { - "sha512": "mZuAl7jw/mFY8jUq4ITKECxVBh9a8SJt9BC/+lJbmo7cRKspxE3PsITz+KiaCEsexN5WYPzwBOx0oJH/0HlPyQ==", - "type": "package", - "files": [ - "System.Net.Http.4.0.0.nupkg", - "System.Net.Http.4.0.0.nupkg.sha512", - "System.Net.Http.nuspec", - "lib/DNXCore50/System.Net.Http.dll", - "lib/net45/_._", - "lib/netcore50/System.Net.Http.dll", - "lib/win8/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Net.Http.dll", - "ref/dotnet/System.Net.Http.xml", - "ref/dotnet/de/System.Net.Http.xml", - "ref/dotnet/es/System.Net.Http.xml", - "ref/dotnet/fr/System.Net.Http.xml", - "ref/dotnet/it/System.Net.Http.xml", - "ref/dotnet/ja/System.Net.Http.xml", - "ref/dotnet/ko/System.Net.Http.xml", - "ref/dotnet/ru/System.Net.Http.xml", - "ref/dotnet/zh-hans/System.Net.Http.xml", - "ref/dotnet/zh-hant/System.Net.Http.xml", - "ref/net45/_._", - "ref/netcore50/System.Net.Http.dll", - "ref/netcore50/System.Net.Http.xml", - "ref/win8/_._", - "ref/wpa81/_._" - ] - }, - "System.Net.NetworkInformation/4.0.0": { - "sha512": "D68KCf5VK1G1GgFUwD901gU6cnMITksOdfdxUCt9ReCZfT1pigaDqjJ7XbiLAM4jm7TfZHB7g5mbOf1mbG3yBA==", - "type": "package", - "files": [ - "System.Net.NetworkInformation.4.0.0.nupkg", - "System.Net.NetworkInformation.4.0.0.nupkg.sha512", - "System.Net.NetworkInformation.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/netcore50/System.Net.NetworkInformation.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Net.NetworkInformation.dll", - "ref/dotnet/System.Net.NetworkInformation.xml", - "ref/dotnet/de/System.Net.NetworkInformation.xml", - "ref/dotnet/es/System.Net.NetworkInformation.xml", - "ref/dotnet/fr/System.Net.NetworkInformation.xml", - "ref/dotnet/it/System.Net.NetworkInformation.xml", - "ref/dotnet/ja/System.Net.NetworkInformation.xml", - "ref/dotnet/ko/System.Net.NetworkInformation.xml", - "ref/dotnet/ru/System.Net.NetworkInformation.xml", - "ref/dotnet/zh-hans/System.Net.NetworkInformation.xml", - "ref/dotnet/zh-hant/System.Net.NetworkInformation.xml", - "ref/net45/_._", - "ref/netcore50/System.Net.NetworkInformation.dll", - "ref/netcore50/System.Net.NetworkInformation.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.Net.Primitives/4.0.10": { - "sha512": "YQqIpmMhnKjIbT7rl6dlf7xM5DxaMR+whduZ9wKb9OhMLjoueAJO3HPPJI+Naf3v034kb+xZqdc3zo44o3HWcg==", - "type": "package", - "files": [ - "System.Net.Primitives.4.0.10.nupkg", - "System.Net.Primitives.4.0.10.nupkg.sha512", - "System.Net.Primitives.nuspec", - "lib/DNXCore50/System.Net.Primitives.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Net.Primitives.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Net.Primitives.dll", - "ref/dotnet/System.Net.Primitives.xml", - "ref/dotnet/de/System.Net.Primitives.xml", - "ref/dotnet/es/System.Net.Primitives.xml", - "ref/dotnet/fr/System.Net.Primitives.xml", - "ref/dotnet/it/System.Net.Primitives.xml", - "ref/dotnet/ja/System.Net.Primitives.xml", - "ref/dotnet/ko/System.Net.Primitives.xml", - "ref/dotnet/ru/System.Net.Primitives.xml", - "ref/dotnet/zh-hans/System.Net.Primitives.xml", - "ref/dotnet/zh-hant/System.Net.Primitives.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.Numerics.Vectors/4.1.0": { - "sha512": "jpubR06GWPoZA0oU5xLM7kHeV59/CKPBXZk4Jfhi0T3DafxbrdueHZ8kXlb+Fb5nd3DAyyMh2/eqEzLX0xv6Qg==", - "type": "package", - "files": [ - "System.Numerics.Vectors.4.1.0.nupkg", - "System.Numerics.Vectors.4.1.0.nupkg.sha512", - "System.Numerics.Vectors.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.Numerics.Vectors.dll", - "lib/net46/System.Numerics.Vectors.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Numerics.Vectors.dll", - "ref/net46/System.Numerics.Vectors.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.ObjectModel/4.0.10": { - "sha512": "Djn1wb0vP662zxbe+c3mOhvC4vkQGicsFs1Wi0/GJJpp3Eqp+oxbJ+p2Sx3O0efYueggAI5SW+BqEoczjfr1cA==", - "type": "package", - "files": [ - "System.ObjectModel.4.0.10.nupkg", - "System.ObjectModel.4.0.10.nupkg.sha512", - "System.ObjectModel.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.ObjectModel.dll", - "lib/net46/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.ObjectModel.dll", - "ref/dotnet/System.ObjectModel.xml", - "ref/dotnet/de/System.ObjectModel.xml", - "ref/dotnet/es/System.ObjectModel.xml", - "ref/dotnet/fr/System.ObjectModel.xml", - "ref/dotnet/it/System.ObjectModel.xml", - "ref/dotnet/ja/System.ObjectModel.xml", - "ref/dotnet/ko/System.ObjectModel.xml", - "ref/dotnet/ru/System.ObjectModel.xml", - "ref/dotnet/zh-hans/System.ObjectModel.xml", - "ref/dotnet/zh-hant/System.ObjectModel.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.Private.Networking/4.0.0": { - "sha512": "RUEqdBdJjISC65dO8l4LdN7vTdlXH+attUpKnauDUHVtLbIKdlDB9LKoLzCQsTQRP7vzUJHWYXznHJBkjAA7yA==", - "type": "package", - "files": [ - "System.Private.Networking.4.0.0.nupkg", - "System.Private.Networking.4.0.0.nupkg.sha512", - "System.Private.Networking.nuspec", - "lib/DNXCore50/System.Private.Networking.dll", - "lib/netcore50/System.Private.Networking.dll", - "ref/dnxcore50/_._", - "ref/netcore50/_._" - ] - }, - "System.Private.Uri/4.0.0": { - "sha512": "CtuxaCKcRIvPcsqquVl3mPp79EDZPMr2UogfiFCxCs+t2z1VjbpQsKNs1GHZ8VQetqbk1mr0V1yAfMe6y8CHDA==", - "type": "package", - "files": [ - "System.Private.Uri.4.0.0.nupkg", - "System.Private.Uri.4.0.0.nupkg.sha512", - "System.Private.Uri.nuspec", - "lib/DNXCore50/System.Private.Uri.dll", - "lib/netcore50/System.Private.Uri.dll", - "ref/dnxcore50/_._", - "ref/netcore50/_._", - "runtimes/win8-aot/lib/netcore50/System.Private.Uri.dll" - ] - }, - "System.Reflection/4.0.10": { - "sha512": "WZ+4lEE4gqGx6mrqLhSiW4oi6QLPWwdNjzhhTONmhELOrW8Cw9phlO9tltgvRUuQUqYtBiliFwhO5S5fCJElVw==", - "type": "package", - "files": [ - "System.Reflection.4.0.10.nupkg", - "System.Reflection.4.0.10.nupkg.sha512", - "System.Reflection.nuspec", - "lib/DNXCore50/System.Reflection.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Reflection.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Reflection.dll", - "ref/dotnet/System.Reflection.xml", - "ref/dotnet/de/System.Reflection.xml", - "ref/dotnet/es/System.Reflection.xml", - "ref/dotnet/fr/System.Reflection.xml", - "ref/dotnet/it/System.Reflection.xml", - "ref/dotnet/ja/System.Reflection.xml", - "ref/dotnet/ko/System.Reflection.xml", - "ref/dotnet/ru/System.Reflection.xml", - "ref/dotnet/zh-hans/System.Reflection.xml", - "ref/dotnet/zh-hant/System.Reflection.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Reflection.dll" - ] - }, - "System.Reflection/4.1.0": { - "sha512": "JCKANJ0TI7kzoQzuwB/OoJANy1Lg338B6+JVacPl4TpUwi3cReg3nMLplMq2uqYfHFQpKIlHAUVAJlImZz/4ng==", - "type": "package", - "path": "System.Reflection/4.1.0", - "files": [ - "System.Reflection.4.1.0.nupkg.sha512", - "System.Reflection.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.Reflection.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.Reflection.dll", - "ref/netcore50/System.Reflection.dll", - "ref/netcore50/System.Reflection.xml", - "ref/netcore50/de/System.Reflection.xml", - "ref/netcore50/es/System.Reflection.xml", - "ref/netcore50/fr/System.Reflection.xml", - "ref/netcore50/it/System.Reflection.xml", - "ref/netcore50/ja/System.Reflection.xml", - "ref/netcore50/ko/System.Reflection.xml", - "ref/netcore50/ru/System.Reflection.xml", - "ref/netcore50/zh-hans/System.Reflection.xml", - "ref/netcore50/zh-hant/System.Reflection.xml", - "ref/netstandard1.0/System.Reflection.dll", - "ref/netstandard1.0/System.Reflection.xml", - "ref/netstandard1.0/de/System.Reflection.xml", - "ref/netstandard1.0/es/System.Reflection.xml", - "ref/netstandard1.0/fr/System.Reflection.xml", - "ref/netstandard1.0/it/System.Reflection.xml", - "ref/netstandard1.0/ja/System.Reflection.xml", - "ref/netstandard1.0/ko/System.Reflection.xml", - "ref/netstandard1.0/ru/System.Reflection.xml", - "ref/netstandard1.0/zh-hans/System.Reflection.xml", - "ref/netstandard1.0/zh-hant/System.Reflection.xml", - "ref/netstandard1.3/System.Reflection.dll", - "ref/netstandard1.3/System.Reflection.xml", - "ref/netstandard1.3/de/System.Reflection.xml", - "ref/netstandard1.3/es/System.Reflection.xml", - "ref/netstandard1.3/fr/System.Reflection.xml", - "ref/netstandard1.3/it/System.Reflection.xml", - "ref/netstandard1.3/ja/System.Reflection.xml", - "ref/netstandard1.3/ko/System.Reflection.xml", - "ref/netstandard1.3/ru/System.Reflection.xml", - "ref/netstandard1.3/zh-hans/System.Reflection.xml", - "ref/netstandard1.3/zh-hant/System.Reflection.xml", - "ref/netstandard1.5/System.Reflection.dll", - "ref/netstandard1.5/System.Reflection.xml", - "ref/netstandard1.5/de/System.Reflection.xml", - "ref/netstandard1.5/es/System.Reflection.xml", - "ref/netstandard1.5/fr/System.Reflection.xml", - "ref/netstandard1.5/it/System.Reflection.xml", - "ref/netstandard1.5/ja/System.Reflection.xml", - "ref/netstandard1.5/ko/System.Reflection.xml", - "ref/netstandard1.5/ru/System.Reflection.xml", - "ref/netstandard1.5/zh-hans/System.Reflection.xml", - "ref/netstandard1.5/zh-hant/System.Reflection.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Reflection.DispatchProxy/4.0.0": { - "sha512": "Kd/4o6DqBfJA4058X8oGEu1KlT8Ej0A+WGeoQgZU2h+3f2vC8NRbHxeOSZvxj9/MPZ1RYmZMGL1ApO9xG/4IVA==", - "type": "package", - "files": [ - "System.Reflection.DispatchProxy.4.0.0.nupkg", - "System.Reflection.DispatchProxy.4.0.0.nupkg.sha512", - "System.Reflection.DispatchProxy.nuspec", - "lib/DNXCore50/System.Reflection.DispatchProxy.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Reflection.DispatchProxy.dll", - "lib/netcore50/System.Reflection.DispatchProxy.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Reflection.DispatchProxy.dll", - "ref/dotnet/System.Reflection.DispatchProxy.xml", - "ref/dotnet/de/System.Reflection.DispatchProxy.xml", - "ref/dotnet/es/System.Reflection.DispatchProxy.xml", - "ref/dotnet/fr/System.Reflection.DispatchProxy.xml", - "ref/dotnet/it/System.Reflection.DispatchProxy.xml", - "ref/dotnet/ja/System.Reflection.DispatchProxy.xml", - "ref/dotnet/ko/System.Reflection.DispatchProxy.xml", - "ref/dotnet/ru/System.Reflection.DispatchProxy.xml", - "ref/dotnet/zh-hans/System.Reflection.DispatchProxy.xml", - "ref/dotnet/zh-hant/System.Reflection.DispatchProxy.xml", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtime.json", - "runtimes/win8-aot/lib/netcore50/System.Reflection.DispatchProxy.dll" - ] - }, - "System.Reflection.Extensions/4.0.0": { - "sha512": "dbYaZWCyFAu1TGYUqR2n+Q+1casSHPR2vVW0WVNkXpZbrd2BXcZ7cpvpu9C98CTHtNmyfMWCLpCclDqly23t6A==", - "type": "package", - "files": [ - "System.Reflection.Extensions.4.0.0.nupkg", - "System.Reflection.Extensions.4.0.0.nupkg.sha512", - "System.Reflection.Extensions.nuspec", - "lib/DNXCore50/System.Reflection.Extensions.dll", - "lib/net45/_._", - "lib/netcore50/System.Reflection.Extensions.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Reflection.Extensions.dll", - "ref/dotnet/System.Reflection.Extensions.xml", - "ref/dotnet/de/System.Reflection.Extensions.xml", - "ref/dotnet/es/System.Reflection.Extensions.xml", - "ref/dotnet/fr/System.Reflection.Extensions.xml", - "ref/dotnet/it/System.Reflection.Extensions.xml", - "ref/dotnet/ja/System.Reflection.Extensions.xml", - "ref/dotnet/ko/System.Reflection.Extensions.xml", - "ref/dotnet/ru/System.Reflection.Extensions.xml", - "ref/dotnet/zh-hans/System.Reflection.Extensions.xml", - "ref/dotnet/zh-hant/System.Reflection.Extensions.xml", - "ref/net45/_._", - "ref/netcore50/System.Reflection.Extensions.dll", - "ref/netcore50/System.Reflection.Extensions.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "runtimes/win8-aot/lib/netcore50/System.Reflection.Extensions.dll" - ] - }, - "System.Reflection.Metadata/1.0.22": { - "sha512": "ltoL/teiEdy5W9fyYdtFr2xJ/4nHyksXLK9dkPWx3ubnj7BVfsSWxvWTg9EaJUXjhWvS/AeTtugZA1/IDQyaPQ==", - "type": "package", - "files": [ - "System.Reflection.Metadata.1.0.22.nupkg", - "System.Reflection.Metadata.1.0.22.nupkg.sha512", - "System.Reflection.Metadata.nuspec", - "lib/dotnet/System.Reflection.Metadata.dll", - "lib/dotnet/System.Reflection.Metadata.xml", - "lib/portable-net45+win8/System.Reflection.Metadata.dll", - "lib/portable-net45+win8/System.Reflection.Metadata.xml" - ] - }, - "System.Reflection.Primitives/4.0.0": { - "sha512": "n9S0XpKv2ruc17FSnaiX6nV47VfHTZ1wLjKZlAirUZCvDQCH71mVp+Ohabn0xXLh5pK2PKp45HCxkqu5Fxn/lA==", - "type": "package", - "files": [ - "System.Reflection.Primitives.4.0.0.nupkg", - "System.Reflection.Primitives.4.0.0.nupkg.sha512", - "System.Reflection.Primitives.nuspec", - "lib/DNXCore50/System.Reflection.Primitives.dll", - "lib/net45/_._", - "lib/netcore50/System.Reflection.Primitives.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Reflection.Primitives.dll", - "ref/dotnet/System.Reflection.Primitives.xml", - "ref/dotnet/de/System.Reflection.Primitives.xml", - "ref/dotnet/es/System.Reflection.Primitives.xml", - "ref/dotnet/fr/System.Reflection.Primitives.xml", - "ref/dotnet/it/System.Reflection.Primitives.xml", - "ref/dotnet/ja/System.Reflection.Primitives.xml", - "ref/dotnet/ko/System.Reflection.Primitives.xml", - "ref/dotnet/ru/System.Reflection.Primitives.xml", - "ref/dotnet/zh-hans/System.Reflection.Primitives.xml", - "ref/dotnet/zh-hant/System.Reflection.Primitives.xml", - "ref/net45/_._", - "ref/netcore50/System.Reflection.Primitives.dll", - "ref/netcore50/System.Reflection.Primitives.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "runtimes/win8-aot/lib/netcore50/System.Reflection.Primitives.dll" - ] - }, - "System.Reflection.Primitives/4.0.1": { - "sha512": "4inTox4wTBaDhB7V3mPvp9XlCbeGYWVEM9/fXALd52vNEAVisc1BoVWQPuUuD0Ga//dNbA/WeMy9u9mzLxGTHQ==", - "type": "package", - "path": "System.Reflection.Primitives/4.0.1", - "files": [ - "System.Reflection.Primitives.4.0.1.nupkg.sha512", - "System.Reflection.Primitives.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Reflection.Primitives.dll", - "ref/netcore50/System.Reflection.Primitives.xml", - "ref/netcore50/de/System.Reflection.Primitives.xml", - "ref/netcore50/es/System.Reflection.Primitives.xml", - "ref/netcore50/fr/System.Reflection.Primitives.xml", - "ref/netcore50/it/System.Reflection.Primitives.xml", - "ref/netcore50/ja/System.Reflection.Primitives.xml", - "ref/netcore50/ko/System.Reflection.Primitives.xml", - "ref/netcore50/ru/System.Reflection.Primitives.xml", - "ref/netcore50/zh-hans/System.Reflection.Primitives.xml", - "ref/netcore50/zh-hant/System.Reflection.Primitives.xml", - "ref/netstandard1.0/System.Reflection.Primitives.dll", - "ref/netstandard1.0/System.Reflection.Primitives.xml", - "ref/netstandard1.0/de/System.Reflection.Primitives.xml", - "ref/netstandard1.0/es/System.Reflection.Primitives.xml", - "ref/netstandard1.0/fr/System.Reflection.Primitives.xml", - "ref/netstandard1.0/it/System.Reflection.Primitives.xml", - "ref/netstandard1.0/ja/System.Reflection.Primitives.xml", - "ref/netstandard1.0/ko/System.Reflection.Primitives.xml", - "ref/netstandard1.0/ru/System.Reflection.Primitives.xml", - "ref/netstandard1.0/zh-hans/System.Reflection.Primitives.xml", - "ref/netstandard1.0/zh-hant/System.Reflection.Primitives.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Reflection.TypeExtensions/4.0.0": { - "sha512": "YRM/msNAM86hdxPyXcuZSzmTO0RQFh7YMEPBLTY8cqXvFPYIx2x99bOyPkuU81wRYQem1c1HTkImQ2DjbOBfew==", - "type": "package", - "files": [ - "System.Reflection.TypeExtensions.4.0.0.nupkg", - "System.Reflection.TypeExtensions.4.0.0.nupkg.sha512", - "System.Reflection.TypeExtensions.nuspec", - "lib/DNXCore50/System.Reflection.TypeExtensions.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/System.Reflection.TypeExtensions.dll", - "lib/netcore50/System.Reflection.TypeExtensions.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Reflection.TypeExtensions.dll", - "ref/dotnet/System.Reflection.TypeExtensions.xml", - "ref/dotnet/de/System.Reflection.TypeExtensions.xml", - "ref/dotnet/es/System.Reflection.TypeExtensions.xml", - "ref/dotnet/fr/System.Reflection.TypeExtensions.xml", - "ref/dotnet/it/System.Reflection.TypeExtensions.xml", - "ref/dotnet/ja/System.Reflection.TypeExtensions.xml", - "ref/dotnet/ko/System.Reflection.TypeExtensions.xml", - "ref/dotnet/ru/System.Reflection.TypeExtensions.xml", - "ref/dotnet/zh-hans/System.Reflection.TypeExtensions.xml", - "ref/dotnet/zh-hant/System.Reflection.TypeExtensions.xml", - "ref/net46/System.Reflection.TypeExtensions.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Reflection.TypeExtensions.dll" - ] - }, - "System.Resources.ResourceManager/4.0.0": { - "sha512": "qmqeZ4BJgjfU+G2JbrZt4Dk1LsMxO4t+f/9HarNY6w8pBgweO6jT+cknUH7c3qIrGvyUqraBhU45Eo6UtA0fAw==", - "type": "package", - "files": [ - "System.Resources.ResourceManager.4.0.0.nupkg", - "System.Resources.ResourceManager.4.0.0.nupkg.sha512", - "System.Resources.ResourceManager.nuspec", - "lib/DNXCore50/System.Resources.ResourceManager.dll", - "lib/net45/_._", - "lib/netcore50/System.Resources.ResourceManager.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Resources.ResourceManager.dll", - "ref/dotnet/System.Resources.ResourceManager.xml", - "ref/dotnet/de/System.Resources.ResourceManager.xml", - "ref/dotnet/es/System.Resources.ResourceManager.xml", - "ref/dotnet/fr/System.Resources.ResourceManager.xml", - "ref/dotnet/it/System.Resources.ResourceManager.xml", - "ref/dotnet/ja/System.Resources.ResourceManager.xml", - "ref/dotnet/ko/System.Resources.ResourceManager.xml", - "ref/dotnet/ru/System.Resources.ResourceManager.xml", - "ref/dotnet/zh-hans/System.Resources.ResourceManager.xml", - "ref/dotnet/zh-hant/System.Resources.ResourceManager.xml", - "ref/net45/_._", - "ref/netcore50/System.Resources.ResourceManager.dll", - "ref/netcore50/System.Resources.ResourceManager.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "runtimes/win8-aot/lib/netcore50/System.Resources.ResourceManager.dll" - ] - }, - "System.Runtime/4.0.20": { - "sha512": "X7N/9Bz7jVPorqdVFO86ns1sX6MlQM+WTxELtx+Z4VG45x9+LKmWH0GRqjgKprUnVuwmfB9EJ9DQng14Z7/zwg==", - "type": "package", - "files": [ - "System.Runtime.4.0.20.nupkg", - "System.Runtime.4.0.20.nupkg.sha512", - "System.Runtime.nuspec", - "lib/DNXCore50/System.Runtime.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Runtime.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Runtime.dll", - "ref/dotnet/System.Runtime.xml", - "ref/dotnet/de/System.Runtime.xml", - "ref/dotnet/es/System.Runtime.xml", - "ref/dotnet/fr/System.Runtime.xml", - "ref/dotnet/it/System.Runtime.xml", - "ref/dotnet/ja/System.Runtime.xml", - "ref/dotnet/ko/System.Runtime.xml", - "ref/dotnet/ru/System.Runtime.xml", - "ref/dotnet/zh-hans/System.Runtime.xml", - "ref/dotnet/zh-hant/System.Runtime.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Runtime.dll" - ] - }, - "System.Runtime/4.1.0": { - "sha512": "v6c/4Yaa9uWsq+JMhnOFewrYkgdNHNG2eMKuNqRn8P733rNXeRCGvV5FkkjBXn2dbVkPXOsO0xjsEeM1q2zC0g==", - "type": "package", - "path": "System.Runtime/4.1.0", - "files": [ - "System.Runtime.4.1.0.nupkg.sha512", - "System.Runtime.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.Runtime.dll", - "lib/portable-net45+win8+wp80+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.Runtime.dll", - "ref/netcore50/System.Runtime.dll", - "ref/netcore50/System.Runtime.xml", - "ref/netcore50/de/System.Runtime.xml", - "ref/netcore50/es/System.Runtime.xml", - "ref/netcore50/fr/System.Runtime.xml", - "ref/netcore50/it/System.Runtime.xml", - "ref/netcore50/ja/System.Runtime.xml", - "ref/netcore50/ko/System.Runtime.xml", - "ref/netcore50/ru/System.Runtime.xml", - "ref/netcore50/zh-hans/System.Runtime.xml", - "ref/netcore50/zh-hant/System.Runtime.xml", - "ref/netstandard1.0/System.Runtime.dll", - "ref/netstandard1.0/System.Runtime.xml", - "ref/netstandard1.0/de/System.Runtime.xml", - "ref/netstandard1.0/es/System.Runtime.xml", - "ref/netstandard1.0/fr/System.Runtime.xml", - "ref/netstandard1.0/it/System.Runtime.xml", - "ref/netstandard1.0/ja/System.Runtime.xml", - "ref/netstandard1.0/ko/System.Runtime.xml", - "ref/netstandard1.0/ru/System.Runtime.xml", - "ref/netstandard1.0/zh-hans/System.Runtime.xml", - "ref/netstandard1.0/zh-hant/System.Runtime.xml", - "ref/netstandard1.2/System.Runtime.dll", - "ref/netstandard1.2/System.Runtime.xml", - "ref/netstandard1.2/de/System.Runtime.xml", - "ref/netstandard1.2/es/System.Runtime.xml", - "ref/netstandard1.2/fr/System.Runtime.xml", - "ref/netstandard1.2/it/System.Runtime.xml", - "ref/netstandard1.2/ja/System.Runtime.xml", - "ref/netstandard1.2/ko/System.Runtime.xml", - "ref/netstandard1.2/ru/System.Runtime.xml", - "ref/netstandard1.2/zh-hans/System.Runtime.xml", - "ref/netstandard1.2/zh-hant/System.Runtime.xml", - "ref/netstandard1.3/System.Runtime.dll", - "ref/netstandard1.3/System.Runtime.xml", - "ref/netstandard1.3/de/System.Runtime.xml", - "ref/netstandard1.3/es/System.Runtime.xml", - "ref/netstandard1.3/fr/System.Runtime.xml", - "ref/netstandard1.3/it/System.Runtime.xml", - "ref/netstandard1.3/ja/System.Runtime.xml", - "ref/netstandard1.3/ko/System.Runtime.xml", - "ref/netstandard1.3/ru/System.Runtime.xml", - "ref/netstandard1.3/zh-hans/System.Runtime.xml", - "ref/netstandard1.3/zh-hant/System.Runtime.xml", - "ref/netstandard1.5/System.Runtime.dll", - "ref/netstandard1.5/System.Runtime.xml", - "ref/netstandard1.5/de/System.Runtime.xml", - "ref/netstandard1.5/es/System.Runtime.xml", - "ref/netstandard1.5/fr/System.Runtime.xml", - "ref/netstandard1.5/it/System.Runtime.xml", - "ref/netstandard1.5/ja/System.Runtime.xml", - "ref/netstandard1.5/ko/System.Runtime.xml", - "ref/netstandard1.5/ru/System.Runtime.xml", - "ref/netstandard1.5/zh-hans/System.Runtime.xml", - "ref/netstandard1.5/zh-hant/System.Runtime.xml", - "ref/portable-net45+win8+wp80+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Runtime.Extensions/4.0.10": { - "sha512": "5dsEwf3Iml7d5OZeT20iyOjT+r+okWpN7xI2v+R4cgd3WSj4DeRPTvPFjDpacbVW4skCAZ8B9hxXJYgkCFKJ1A==", - "type": "package", - "files": [ - "System.Runtime.Extensions.4.0.10.nupkg", - "System.Runtime.Extensions.4.0.10.nupkg.sha512", - "System.Runtime.Extensions.nuspec", - "lib/DNXCore50/System.Runtime.Extensions.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Runtime.Extensions.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Runtime.Extensions.dll", - "ref/dotnet/System.Runtime.Extensions.xml", - "ref/dotnet/de/System.Runtime.Extensions.xml", - "ref/dotnet/es/System.Runtime.Extensions.xml", - "ref/dotnet/fr/System.Runtime.Extensions.xml", - "ref/dotnet/it/System.Runtime.Extensions.xml", - "ref/dotnet/ja/System.Runtime.Extensions.xml", - "ref/dotnet/ko/System.Runtime.Extensions.xml", - "ref/dotnet/ru/System.Runtime.Extensions.xml", - "ref/dotnet/zh-hans/System.Runtime.Extensions.xml", - "ref/dotnet/zh-hant/System.Runtime.Extensions.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Runtime.Extensions.dll" - ] - }, - "System.Runtime.Extensions/4.1.0": { - "sha512": "CUOHjTT/vgP0qGW22U4/hDlOqXmcPq5YicBaXdUR2UiUoLwBT+olO6we4DVbq57jeX5uXH2uerVZhf0qGj+sVQ==", - "type": "package", - "path": "System.Runtime.Extensions/4.1.0", - "files": [ - "System.Runtime.Extensions.4.1.0.nupkg.sha512", - "System.Runtime.Extensions.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net462/System.Runtime.Extensions.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net462/System.Runtime.Extensions.dll", - "ref/netcore50/System.Runtime.Extensions.dll", - "ref/netcore50/System.Runtime.Extensions.xml", - "ref/netcore50/de/System.Runtime.Extensions.xml", - "ref/netcore50/es/System.Runtime.Extensions.xml", - "ref/netcore50/fr/System.Runtime.Extensions.xml", - "ref/netcore50/it/System.Runtime.Extensions.xml", - "ref/netcore50/ja/System.Runtime.Extensions.xml", - "ref/netcore50/ko/System.Runtime.Extensions.xml", - "ref/netcore50/ru/System.Runtime.Extensions.xml", - "ref/netcore50/zh-hans/System.Runtime.Extensions.xml", - "ref/netcore50/zh-hant/System.Runtime.Extensions.xml", - "ref/netstandard1.0/System.Runtime.Extensions.dll", - "ref/netstandard1.0/System.Runtime.Extensions.xml", - "ref/netstandard1.0/de/System.Runtime.Extensions.xml", - "ref/netstandard1.0/es/System.Runtime.Extensions.xml", - "ref/netstandard1.0/fr/System.Runtime.Extensions.xml", - "ref/netstandard1.0/it/System.Runtime.Extensions.xml", - "ref/netstandard1.0/ja/System.Runtime.Extensions.xml", - "ref/netstandard1.0/ko/System.Runtime.Extensions.xml", - "ref/netstandard1.0/ru/System.Runtime.Extensions.xml", - "ref/netstandard1.0/zh-hans/System.Runtime.Extensions.xml", - "ref/netstandard1.0/zh-hant/System.Runtime.Extensions.xml", - "ref/netstandard1.3/System.Runtime.Extensions.dll", - "ref/netstandard1.3/System.Runtime.Extensions.xml", - "ref/netstandard1.3/de/System.Runtime.Extensions.xml", - "ref/netstandard1.3/es/System.Runtime.Extensions.xml", - "ref/netstandard1.3/fr/System.Runtime.Extensions.xml", - "ref/netstandard1.3/it/System.Runtime.Extensions.xml", - "ref/netstandard1.3/ja/System.Runtime.Extensions.xml", - "ref/netstandard1.3/ko/System.Runtime.Extensions.xml", - "ref/netstandard1.3/ru/System.Runtime.Extensions.xml", - "ref/netstandard1.3/zh-hans/System.Runtime.Extensions.xml", - "ref/netstandard1.3/zh-hant/System.Runtime.Extensions.xml", - "ref/netstandard1.5/System.Runtime.Extensions.dll", - "ref/netstandard1.5/System.Runtime.Extensions.xml", - "ref/netstandard1.5/de/System.Runtime.Extensions.xml", - "ref/netstandard1.5/es/System.Runtime.Extensions.xml", - "ref/netstandard1.5/fr/System.Runtime.Extensions.xml", - "ref/netstandard1.5/it/System.Runtime.Extensions.xml", - "ref/netstandard1.5/ja/System.Runtime.Extensions.xml", - "ref/netstandard1.5/ko/System.Runtime.Extensions.xml", - "ref/netstandard1.5/ru/System.Runtime.Extensions.xml", - "ref/netstandard1.5/zh-hans/System.Runtime.Extensions.xml", - "ref/netstandard1.5/zh-hant/System.Runtime.Extensions.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Runtime.Handles/4.0.0": { - "sha512": "638VhpRq63tVcQ6HDb3um3R/J2BtR1Sa96toHo6PcJGPXEPEsleCuqhBgX2gFCz0y0qkutANwW6VPPY5wQu1XQ==", - "type": "package", - "files": [ - "System.Runtime.Handles.4.0.0.nupkg", - "System.Runtime.Handles.4.0.0.nupkg.sha512", - "System.Runtime.Handles.nuspec", - "lib/DNXCore50/System.Runtime.Handles.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Runtime.Handles.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Runtime.Handles.dll", - "ref/dotnet/System.Runtime.Handles.xml", - "ref/dotnet/de/System.Runtime.Handles.xml", - "ref/dotnet/es/System.Runtime.Handles.xml", - "ref/dotnet/fr/System.Runtime.Handles.xml", - "ref/dotnet/it/System.Runtime.Handles.xml", - "ref/dotnet/ja/System.Runtime.Handles.xml", - "ref/dotnet/ko/System.Runtime.Handles.xml", - "ref/dotnet/ru/System.Runtime.Handles.xml", - "ref/dotnet/zh-hans/System.Runtime.Handles.xml", - "ref/dotnet/zh-hant/System.Runtime.Handles.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Runtime.Handles.dll" - ] - }, - "System.Runtime.InteropServices/4.0.20": { - "sha512": "ZgDyBYfEnjWoz/viS6VOswA6XOkDSH2DzgbpczbW50RywhnCgTl+w3JEvtAiOGyIh8cyx1NJq80jsNBSUr8Pig==", - "type": "package", - "files": [ - "System.Runtime.InteropServices.4.0.20.nupkg", - "System.Runtime.InteropServices.4.0.20.nupkg.sha512", - "System.Runtime.InteropServices.nuspec", - "lib/DNXCore50/System.Runtime.InteropServices.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Runtime.InteropServices.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Runtime.InteropServices.dll", - "ref/dotnet/System.Runtime.InteropServices.xml", - "ref/dotnet/de/System.Runtime.InteropServices.xml", - "ref/dotnet/es/System.Runtime.InteropServices.xml", - "ref/dotnet/fr/System.Runtime.InteropServices.xml", - "ref/dotnet/it/System.Runtime.InteropServices.xml", - "ref/dotnet/ja/System.Runtime.InteropServices.xml", - "ref/dotnet/ko/System.Runtime.InteropServices.xml", - "ref/dotnet/ru/System.Runtime.InteropServices.xml", - "ref/dotnet/zh-hans/System.Runtime.InteropServices.xml", - "ref/dotnet/zh-hant/System.Runtime.InteropServices.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Runtime.InteropServices.dll" - ] - }, - "System.Runtime.InteropServices.WindowsRuntime/4.0.0": { - "sha512": "K5MGSvw/sGPKQYdOVqSpsVbHBE8HccHIDEhUNjM1lui65KGF/slNZfijGU87ggQiVXTI802ebKiOYBkwiLotow==", - "type": "package", - "files": [ - "System.Runtime.InteropServices.WindowsRuntime.4.0.0.nupkg", - "System.Runtime.InteropServices.WindowsRuntime.4.0.0.nupkg.sha512", - "System.Runtime.InteropServices.WindowsRuntime.nuspec", - "lib/net45/_._", - "lib/netcore50/System.Runtime.InteropServices.WindowsRuntime.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Runtime.InteropServices.WindowsRuntime.dll", - "ref/dotnet/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/dotnet/de/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/dotnet/es/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/dotnet/fr/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/dotnet/it/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/dotnet/ja/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/dotnet/ko/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/dotnet/ru/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/dotnet/zh-hans/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/dotnet/zh-hant/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/net45/_._", - "ref/netcore50/System.Runtime.InteropServices.WindowsRuntime.dll", - "ref/netcore50/System.Runtime.InteropServices.WindowsRuntime.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "runtimes/win8-aot/lib/netcore50/System.Runtime.InteropServices.WindowsRuntime.dll" - ] - }, - "System.Runtime.Numerics/4.0.0": { - "sha512": "aAYGEOE01nabQLufQ4YO8WuSyZzOqGcksi8m1BRW8ppkmssR7en8TqiXcBkB2gTkCnKG/Ai2NQY8CgdmgZw/fw==", - "type": "package", - "files": [ - "System.Runtime.Numerics.4.0.0.nupkg", - "System.Runtime.Numerics.4.0.0.nupkg.sha512", - "System.Runtime.Numerics.nuspec", - "lib/dotnet/System.Runtime.Numerics.dll", - "lib/net45/_._", - "lib/netcore50/System.Runtime.Numerics.dll", - "lib/win8/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Runtime.Numerics.dll", - "ref/dotnet/System.Runtime.Numerics.xml", - "ref/dotnet/de/System.Runtime.Numerics.xml", - "ref/dotnet/es/System.Runtime.Numerics.xml", - "ref/dotnet/fr/System.Runtime.Numerics.xml", - "ref/dotnet/it/System.Runtime.Numerics.xml", - "ref/dotnet/ja/System.Runtime.Numerics.xml", - "ref/dotnet/ko/System.Runtime.Numerics.xml", - "ref/dotnet/ru/System.Runtime.Numerics.xml", - "ref/dotnet/zh-hans/System.Runtime.Numerics.xml", - "ref/dotnet/zh-hant/System.Runtime.Numerics.xml", - "ref/net45/_._", - "ref/netcore50/System.Runtime.Numerics.dll", - "ref/netcore50/System.Runtime.Numerics.xml", - "ref/win8/_._", - "ref/wpa81/_._" - ] - }, - "System.Runtime.WindowsRuntime/4.0.10": { - "sha512": "9w6ypdnEw8RrLRlxTbLAYrap4eL1xIQeNoOaumQVOQ8TTD/5g9FGrBtY3KLiGxAPieN9AwAAEIDkugU85Cwuvg==", - "type": "package", - "files": [ - "System.Runtime.WindowsRuntime.4.0.10.nupkg", - "System.Runtime.WindowsRuntime.4.0.10.nupkg.sha512", - "System.Runtime.WindowsRuntime.nuspec", - "lib/netcore50/System.Runtime.WindowsRuntime.dll", - "lib/win81/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Runtime.WindowsRuntime.dll", - "ref/dotnet/System.Runtime.WindowsRuntime.xml", - "ref/dotnet/de/System.Runtime.WindowsRuntime.xml", - "ref/dotnet/es/System.Runtime.WindowsRuntime.xml", - "ref/dotnet/fr/System.Runtime.WindowsRuntime.xml", - "ref/dotnet/it/System.Runtime.WindowsRuntime.xml", - "ref/dotnet/ja/System.Runtime.WindowsRuntime.xml", - "ref/dotnet/ko/System.Runtime.WindowsRuntime.xml", - "ref/dotnet/ru/System.Runtime.WindowsRuntime.xml", - "ref/dotnet/zh-hans/System.Runtime.WindowsRuntime.xml", - "ref/dotnet/zh-hant/System.Runtime.WindowsRuntime.xml", - "ref/netcore50/System.Runtime.WindowsRuntime.dll", - "ref/netcore50/System.Runtime.WindowsRuntime.xml", - "ref/win81/_._", - "ref/wpa81/_._", - "runtimes/win8-aot/lib/netcore50/System.Runtime.WindowsRuntime.dll" - ] - }, - "System.Security.Claims/4.0.0": { - "sha512": "94NFR/7JN3YdyTH7hl2iSvYmdA8aqShriTHectcK+EbizT71YczMaG6LuqJBQP/HWo66AQyikYYM9aw+4EzGXg==", - "type": "package", - "files": [ - "System.Security.Claims.4.0.0.nupkg", - "System.Security.Claims.4.0.0.nupkg.sha512", - "System.Security.Claims.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.Security.Claims.dll", - "lib/net46/System.Security.Claims.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Security.Claims.dll", - "ref/dotnet/System.Security.Claims.xml", - "ref/dotnet/de/System.Security.Claims.xml", - "ref/dotnet/es/System.Security.Claims.xml", - "ref/dotnet/fr/System.Security.Claims.xml", - "ref/dotnet/it/System.Security.Claims.xml", - "ref/dotnet/ja/System.Security.Claims.xml", - "ref/dotnet/ko/System.Security.Claims.xml", - "ref/dotnet/ru/System.Security.Claims.xml", - "ref/dotnet/zh-hans/System.Security.Claims.xml", - "ref/dotnet/zh-hant/System.Security.Claims.xml", - "ref/net46/System.Security.Claims.dll", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.Security.Principal/4.0.0": { - "sha512": "FOhq3jUOONi6fp5j3nPYJMrKtSJlqAURpjiO3FaDIV4DJNEYymWW5uh1pfxySEB8dtAW+I66IypzNge/w9OzZQ==", - "type": "package", - "files": [ - "System.Security.Principal.4.0.0.nupkg", - "System.Security.Principal.4.0.0.nupkg.sha512", - "System.Security.Principal.nuspec", - "lib/dotnet/System.Security.Principal.dll", - "lib/net45/_._", - "lib/netcore50/System.Security.Principal.dll", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Security.Principal.dll", - "ref/dotnet/System.Security.Principal.xml", - "ref/dotnet/de/System.Security.Principal.xml", - "ref/dotnet/es/System.Security.Principal.xml", - "ref/dotnet/fr/System.Security.Principal.xml", - "ref/dotnet/it/System.Security.Principal.xml", - "ref/dotnet/ja/System.Security.Principal.xml", - "ref/dotnet/ko/System.Security.Principal.xml", - "ref/dotnet/ru/System.Security.Principal.xml", - "ref/dotnet/zh-hans/System.Security.Principal.xml", - "ref/dotnet/zh-hant/System.Security.Principal.xml", - "ref/net45/_._", - "ref/netcore50/System.Security.Principal.dll", - "ref/netcore50/System.Security.Principal.xml", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._" - ] - }, - "System.Text.Encoding/4.0.10": { - "sha512": "fNlSFgy4OuDlJrP9SFFxMlaLazq6ipv15sU5TiEgg9UCVnA/OgoVUfymFp4AOk1jOkW5SVxWbeeIUptcM+m/Vw==", - "type": "package", - "files": [ - "System.Text.Encoding.4.0.10.nupkg", - "System.Text.Encoding.4.0.10.nupkg.sha512", - "System.Text.Encoding.nuspec", - "lib/DNXCore50/System.Text.Encoding.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Text.Encoding.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Text.Encoding.dll", - "ref/dotnet/System.Text.Encoding.xml", - "ref/dotnet/de/System.Text.Encoding.xml", - "ref/dotnet/es/System.Text.Encoding.xml", - "ref/dotnet/fr/System.Text.Encoding.xml", - "ref/dotnet/it/System.Text.Encoding.xml", - "ref/dotnet/ja/System.Text.Encoding.xml", - "ref/dotnet/ko/System.Text.Encoding.xml", - "ref/dotnet/ru/System.Text.Encoding.xml", - "ref/dotnet/zh-hans/System.Text.Encoding.xml", - "ref/dotnet/zh-hant/System.Text.Encoding.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Text.Encoding.dll" - ] - }, - "System.Text.Encoding/4.0.11": { - "sha512": "U3gGeMlDZXxCEiY4DwVLSacg+DFWCvoiX+JThA/rvw37Sqrku7sEFeVBBBMBnfB6FeZHsyDx85HlKL19x0HtZA==", - "type": "package", - "path": "System.Text.Encoding/4.0.11", - "files": [ - "System.Text.Encoding.4.0.11.nupkg.sha512", - "System.Text.Encoding.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Text.Encoding.dll", - "ref/netcore50/System.Text.Encoding.xml", - "ref/netcore50/de/System.Text.Encoding.xml", - "ref/netcore50/es/System.Text.Encoding.xml", - "ref/netcore50/fr/System.Text.Encoding.xml", - "ref/netcore50/it/System.Text.Encoding.xml", - "ref/netcore50/ja/System.Text.Encoding.xml", - "ref/netcore50/ko/System.Text.Encoding.xml", - "ref/netcore50/ru/System.Text.Encoding.xml", - "ref/netcore50/zh-hans/System.Text.Encoding.xml", - "ref/netcore50/zh-hant/System.Text.Encoding.xml", - "ref/netstandard1.0/System.Text.Encoding.dll", - "ref/netstandard1.0/System.Text.Encoding.xml", - "ref/netstandard1.0/de/System.Text.Encoding.xml", - "ref/netstandard1.0/es/System.Text.Encoding.xml", - "ref/netstandard1.0/fr/System.Text.Encoding.xml", - "ref/netstandard1.0/it/System.Text.Encoding.xml", - "ref/netstandard1.0/ja/System.Text.Encoding.xml", - "ref/netstandard1.0/ko/System.Text.Encoding.xml", - "ref/netstandard1.0/ru/System.Text.Encoding.xml", - "ref/netstandard1.0/zh-hans/System.Text.Encoding.xml", - "ref/netstandard1.0/zh-hant/System.Text.Encoding.xml", - "ref/netstandard1.3/System.Text.Encoding.dll", - "ref/netstandard1.3/System.Text.Encoding.xml", - "ref/netstandard1.3/de/System.Text.Encoding.xml", - "ref/netstandard1.3/es/System.Text.Encoding.xml", - "ref/netstandard1.3/fr/System.Text.Encoding.xml", - "ref/netstandard1.3/it/System.Text.Encoding.xml", - "ref/netstandard1.3/ja/System.Text.Encoding.xml", - "ref/netstandard1.3/ko/System.Text.Encoding.xml", - "ref/netstandard1.3/ru/System.Text.Encoding.xml", - "ref/netstandard1.3/zh-hans/System.Text.Encoding.xml", - "ref/netstandard1.3/zh-hant/System.Text.Encoding.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Text.Encoding.Extensions/4.0.10": { - "sha512": "TZvlwXMxKo3bSRIcsWZLCIzIhLbvlz+mGeKYRZv/zUiSoQzGOwkYeBu6hOw2XPQgKqT0F4Rv8zqKdvmp2fWKYg==", - "type": "package", - "files": [ - "System.Text.Encoding.Extensions.4.0.10.nupkg", - "System.Text.Encoding.Extensions.4.0.10.nupkg.sha512", - "System.Text.Encoding.Extensions.nuspec", - "lib/DNXCore50/System.Text.Encoding.Extensions.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Text.Encoding.Extensions.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Text.Encoding.Extensions.dll", - "ref/dotnet/System.Text.Encoding.Extensions.xml", - "ref/dotnet/de/System.Text.Encoding.Extensions.xml", - "ref/dotnet/es/System.Text.Encoding.Extensions.xml", - "ref/dotnet/fr/System.Text.Encoding.Extensions.xml", - "ref/dotnet/it/System.Text.Encoding.Extensions.xml", - "ref/dotnet/ja/System.Text.Encoding.Extensions.xml", - "ref/dotnet/ko/System.Text.Encoding.Extensions.xml", - "ref/dotnet/ru/System.Text.Encoding.Extensions.xml", - "ref/dotnet/zh-hans/System.Text.Encoding.Extensions.xml", - "ref/dotnet/zh-hant/System.Text.Encoding.Extensions.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Text.Encoding.Extensions.dll" - ] - }, - "System.Text.RegularExpressions/4.0.10": { - "sha512": "0vDuHXJePpfMCecWBNOabOKCvzfTbFMNcGgklt3l5+RqHV5SzmF7RUVpuet8V0rJX30ROlL66xdehw2Rdsn2DA==", - "type": "package", - "files": [ - "System.Text.RegularExpressions.4.0.10.nupkg", - "System.Text.RegularExpressions.4.0.10.nupkg.sha512", - "System.Text.RegularExpressions.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.Text.RegularExpressions.dll", - "lib/net46/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Text.RegularExpressions.dll", - "ref/dotnet/System.Text.RegularExpressions.xml", - "ref/dotnet/de/System.Text.RegularExpressions.xml", - "ref/dotnet/es/System.Text.RegularExpressions.xml", - "ref/dotnet/fr/System.Text.RegularExpressions.xml", - "ref/dotnet/it/System.Text.RegularExpressions.xml", - "ref/dotnet/ja/System.Text.RegularExpressions.xml", - "ref/dotnet/ko/System.Text.RegularExpressions.xml", - "ref/dotnet/ru/System.Text.RegularExpressions.xml", - "ref/dotnet/zh-hans/System.Text.RegularExpressions.xml", - "ref/dotnet/zh-hant/System.Text.RegularExpressions.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.Text.RegularExpressions/4.1.0": { - "sha512": "i88YCXpRTjCnoSQZtdlHkAOx4KNNik4hMy83n0+Ftlb7jvV6ZiZWMpnEZHhjBp6hQVh8gWd/iKNPzlPF7iyA2g==", - "type": "package", - "path": "System.Text.RegularExpressions/4.1.0", - "files": [ - "System.Text.RegularExpressions.4.1.0.nupkg.sha512", - "System.Text.RegularExpressions.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/net463/System.Text.RegularExpressions.dll", - "lib/netcore50/System.Text.RegularExpressions.dll", - "lib/netstandard1.6/System.Text.RegularExpressions.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/net463/System.Text.RegularExpressions.dll", - "ref/netcore50/System.Text.RegularExpressions.dll", - "ref/netcore50/System.Text.RegularExpressions.xml", - "ref/netcore50/de/System.Text.RegularExpressions.xml", - "ref/netcore50/es/System.Text.RegularExpressions.xml", - "ref/netcore50/fr/System.Text.RegularExpressions.xml", - "ref/netcore50/it/System.Text.RegularExpressions.xml", - "ref/netcore50/ja/System.Text.RegularExpressions.xml", - "ref/netcore50/ko/System.Text.RegularExpressions.xml", - "ref/netcore50/ru/System.Text.RegularExpressions.xml", - "ref/netcore50/zh-hans/System.Text.RegularExpressions.xml", - "ref/netcore50/zh-hant/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/System.Text.RegularExpressions.dll", - "ref/netstandard1.0/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/de/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/es/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/fr/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/it/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/ja/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/ko/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/ru/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/zh-hans/System.Text.RegularExpressions.xml", - "ref/netstandard1.0/zh-hant/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/System.Text.RegularExpressions.dll", - "ref/netstandard1.3/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/de/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/es/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/fr/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/it/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/ja/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/ko/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/ru/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/zh-hans/System.Text.RegularExpressions.xml", - "ref/netstandard1.3/zh-hant/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/System.Text.RegularExpressions.dll", - "ref/netstandard1.6/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/de/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/es/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/fr/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/it/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/ja/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/ko/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/ru/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/zh-hans/System.Text.RegularExpressions.xml", - "ref/netstandard1.6/zh-hant/System.Text.RegularExpressions.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Threading/4.0.10": { - "sha512": "0w6pRxIEE7wuiOJeKabkDgeIKmqf4ER1VNrs6qFwHnooEE78yHwi/bKkg5Jo8/pzGLm0xQJw0nEmPXt1QBAIUA==", - "type": "package", - "files": [ - "System.Threading.4.0.10.nupkg", - "System.Threading.4.0.10.nupkg.sha512", - "System.Threading.nuspec", - "lib/DNXCore50/System.Threading.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Threading.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Threading.dll", - "ref/dotnet/System.Threading.xml", - "ref/dotnet/de/System.Threading.xml", - "ref/dotnet/es/System.Threading.xml", - "ref/dotnet/fr/System.Threading.xml", - "ref/dotnet/it/System.Threading.xml", - "ref/dotnet/ja/System.Threading.xml", - "ref/dotnet/ko/System.Threading.xml", - "ref/dotnet/ru/System.Threading.xml", - "ref/dotnet/zh-hans/System.Threading.xml", - "ref/dotnet/zh-hant/System.Threading.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Threading.dll" - ] - }, - "System.Threading/4.0.11": { - "sha512": "N+3xqIcg3VDKyjwwCGaZ9HawG9aC6cSDI+s7ROma310GQo8vilFZa86hqKppwTHleR/G0sfOzhvgnUxWCR/DrQ==", - "type": "package", - "path": "System.Threading/4.0.11", - "files": [ - "System.Threading.4.0.11.nupkg.sha512", - "System.Threading.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/netcore50/System.Threading.dll", - "lib/netstandard1.3/System.Threading.dll", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Threading.dll", - "ref/netcore50/System.Threading.xml", - "ref/netcore50/de/System.Threading.xml", - "ref/netcore50/es/System.Threading.xml", - "ref/netcore50/fr/System.Threading.xml", - "ref/netcore50/it/System.Threading.xml", - "ref/netcore50/ja/System.Threading.xml", - "ref/netcore50/ko/System.Threading.xml", - "ref/netcore50/ru/System.Threading.xml", - "ref/netcore50/zh-hans/System.Threading.xml", - "ref/netcore50/zh-hant/System.Threading.xml", - "ref/netstandard1.0/System.Threading.dll", - "ref/netstandard1.0/System.Threading.xml", - "ref/netstandard1.0/de/System.Threading.xml", - "ref/netstandard1.0/es/System.Threading.xml", - "ref/netstandard1.0/fr/System.Threading.xml", - "ref/netstandard1.0/it/System.Threading.xml", - "ref/netstandard1.0/ja/System.Threading.xml", - "ref/netstandard1.0/ko/System.Threading.xml", - "ref/netstandard1.0/ru/System.Threading.xml", - "ref/netstandard1.0/zh-hans/System.Threading.xml", - "ref/netstandard1.0/zh-hant/System.Threading.xml", - "ref/netstandard1.3/System.Threading.dll", - "ref/netstandard1.3/System.Threading.xml", - "ref/netstandard1.3/de/System.Threading.xml", - "ref/netstandard1.3/es/System.Threading.xml", - "ref/netstandard1.3/fr/System.Threading.xml", - "ref/netstandard1.3/it/System.Threading.xml", - "ref/netstandard1.3/ja/System.Threading.xml", - "ref/netstandard1.3/ko/System.Threading.xml", - "ref/netstandard1.3/ru/System.Threading.xml", - "ref/netstandard1.3/zh-hans/System.Threading.xml", - "ref/netstandard1.3/zh-hant/System.Threading.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._", - "runtimes/aot/lib/netcore50/System.Threading.dll" - ] - }, - "System.Threading.Overlapped/4.0.0": { - "sha512": "X5LuQFhM5FTqaez3eXKJ9CbfSGZ7wj6j4hSVtxct3zmwQXLqG95qoWdvILcgN7xtrDOBIFtpiyDg0vmoI0jE2A==", - "type": "package", - "files": [ - "System.Threading.Overlapped.4.0.0.nupkg", - "System.Threading.Overlapped.4.0.0.nupkg.sha512", - "System.Threading.Overlapped.nuspec", - "lib/DNXCore50/System.Threading.Overlapped.dll", - "lib/net46/System.Threading.Overlapped.dll", - "lib/netcore50/System.Threading.Overlapped.dll", - "ref/dotnet/System.Threading.Overlapped.dll", - "ref/dotnet/System.Threading.Overlapped.xml", - "ref/dotnet/de/System.Threading.Overlapped.xml", - "ref/dotnet/es/System.Threading.Overlapped.xml", - "ref/dotnet/fr/System.Threading.Overlapped.xml", - "ref/dotnet/it/System.Threading.Overlapped.xml", - "ref/dotnet/ja/System.Threading.Overlapped.xml", - "ref/dotnet/ko/System.Threading.Overlapped.xml", - "ref/dotnet/ru/System.Threading.Overlapped.xml", - "ref/dotnet/zh-hans/System.Threading.Overlapped.xml", - "ref/dotnet/zh-hant/System.Threading.Overlapped.xml", - "ref/net46/System.Threading.Overlapped.dll" - ] - }, - "System.Threading.Tasks/4.0.10": { - "sha512": "NOwJGDfk79jR0bnzosbXLVD/PdI8KzBeESoa3CofEM5v9R5EBfcI0Jyf18stx+0IYV9okmDIDxVtxq9TbnR9bQ==", - "type": "package", - "files": [ - "System.Threading.Tasks.4.0.10.nupkg", - "System.Threading.Tasks.4.0.10.nupkg.sha512", - "System.Threading.Tasks.nuspec", - "lib/DNXCore50/System.Threading.Tasks.dll", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net46/_._", - "lib/netcore50/System.Threading.Tasks.dll", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Threading.Tasks.dll", - "ref/dotnet/System.Threading.Tasks.xml", - "ref/dotnet/de/System.Threading.Tasks.xml", - "ref/dotnet/es/System.Threading.Tasks.xml", - "ref/dotnet/fr/System.Threading.Tasks.xml", - "ref/dotnet/it/System.Threading.Tasks.xml", - "ref/dotnet/ja/System.Threading.Tasks.xml", - "ref/dotnet/ko/System.Threading.Tasks.xml", - "ref/dotnet/ru/System.Threading.Tasks.xml", - "ref/dotnet/zh-hans/System.Threading.Tasks.xml", - "ref/dotnet/zh-hant/System.Threading.Tasks.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "runtimes/win8-aot/lib/netcore50/System.Threading.Tasks.dll" - ] - }, - "System.Threading.Tasks/4.0.11": { - "sha512": "k1S4Gc6IGwtHGT8188RSeGaX86Qw/wnrgNLshJvsdNUOPP9etMmo8S07c+UlOAx4K/xLuN9ivA1bD0LVurtIxQ==", - "type": "package", - "path": "System.Threading.Tasks/4.0.11", - "files": [ - "System.Threading.Tasks.4.0.11.nupkg.sha512", - "System.Threading.Tasks.nuspec", - "ThirdPartyNotices.txt", - "dotnet_library_license.txt", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/net45/_._", - "lib/portable-net45+win8+wp8+wpa81/_._", - "lib/win8/_._", - "lib/wp80/_._", - "lib/wpa81/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "lib/xamarintvos10/_._", - "lib/xamarinwatchos10/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/net45/_._", - "ref/netcore50/System.Threading.Tasks.dll", - "ref/netcore50/System.Threading.Tasks.xml", - "ref/netcore50/de/System.Threading.Tasks.xml", - "ref/netcore50/es/System.Threading.Tasks.xml", - "ref/netcore50/fr/System.Threading.Tasks.xml", - "ref/netcore50/it/System.Threading.Tasks.xml", - "ref/netcore50/ja/System.Threading.Tasks.xml", - "ref/netcore50/ko/System.Threading.Tasks.xml", - "ref/netcore50/ru/System.Threading.Tasks.xml", - "ref/netcore50/zh-hans/System.Threading.Tasks.xml", - "ref/netcore50/zh-hant/System.Threading.Tasks.xml", - "ref/netstandard1.0/System.Threading.Tasks.dll", - "ref/netstandard1.0/System.Threading.Tasks.xml", - "ref/netstandard1.0/de/System.Threading.Tasks.xml", - "ref/netstandard1.0/es/System.Threading.Tasks.xml", - "ref/netstandard1.0/fr/System.Threading.Tasks.xml", - "ref/netstandard1.0/it/System.Threading.Tasks.xml", - "ref/netstandard1.0/ja/System.Threading.Tasks.xml", - "ref/netstandard1.0/ko/System.Threading.Tasks.xml", - "ref/netstandard1.0/ru/System.Threading.Tasks.xml", - "ref/netstandard1.0/zh-hans/System.Threading.Tasks.xml", - "ref/netstandard1.0/zh-hant/System.Threading.Tasks.xml", - "ref/netstandard1.3/System.Threading.Tasks.dll", - "ref/netstandard1.3/System.Threading.Tasks.xml", - "ref/netstandard1.3/de/System.Threading.Tasks.xml", - "ref/netstandard1.3/es/System.Threading.Tasks.xml", - "ref/netstandard1.3/fr/System.Threading.Tasks.xml", - "ref/netstandard1.3/it/System.Threading.Tasks.xml", - "ref/netstandard1.3/ja/System.Threading.Tasks.xml", - "ref/netstandard1.3/ko/System.Threading.Tasks.xml", - "ref/netstandard1.3/ru/System.Threading.Tasks.xml", - "ref/netstandard1.3/zh-hans/System.Threading.Tasks.xml", - "ref/netstandard1.3/zh-hant/System.Threading.Tasks.xml", - "ref/portable-net45+win8+wp8+wpa81/_._", - "ref/win8/_._", - "ref/wp80/_._", - "ref/wpa81/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._", - "ref/xamarintvos10/_._", - "ref/xamarinwatchos10/_._" - ] - }, - "System.Threading.Tasks.Dataflow/4.5.25": { - "sha512": "Y5/Dj+tYlDxHBwie7bFKp3+1uSG4vqTJRF7Zs7kaUQ3ahYClffCTxvgjrJyPclC+Le55uE7bMLgjZQVOQr3Jfg==", - "type": "package", - "files": [ - "System.Threading.Tasks.Dataflow.4.5.25.nupkg", - "System.Threading.Tasks.Dataflow.4.5.25.nupkg.sha512", - "System.Threading.Tasks.Dataflow.nuspec", - "lib/dotnet/System.Threading.Tasks.Dataflow.XML", - "lib/dotnet/System.Threading.Tasks.Dataflow.dll", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Dataflow.XML", - "lib/portable-net45+win8+wp8+wpa81/System.Threading.Tasks.Dataflow.dll", - "lib/portable-net45+win8+wpa81/System.Threading.Tasks.Dataflow.XML", - "lib/portable-net45+win8+wpa81/System.Threading.Tasks.Dataflow.dll" - ] - }, - "System.Threading.Tasks.Parallel/4.0.0": { - "sha512": "GXDhjPhF3nE4RtDia0W6JR4UMdmhOyt9ibHmsNV6GLRT4HAGqU636Teo4tqvVQOFp2R6b1ffxPXiRaoqtzGxuA==", - "type": "package", - "files": [ - "System.Threading.Tasks.Parallel.4.0.0.nupkg", - "System.Threading.Tasks.Parallel.4.0.0.nupkg.sha512", - "System.Threading.Tasks.Parallel.nuspec", - "lib/dotnet/System.Threading.Tasks.Parallel.dll", - "lib/net45/_._", - "lib/netcore50/System.Threading.Tasks.Parallel.dll", - "lib/win8/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Threading.Tasks.Parallel.dll", - "ref/dotnet/System.Threading.Tasks.Parallel.xml", - "ref/dotnet/de/System.Threading.Tasks.Parallel.xml", - "ref/dotnet/es/System.Threading.Tasks.Parallel.xml", - "ref/dotnet/fr/System.Threading.Tasks.Parallel.xml", - "ref/dotnet/it/System.Threading.Tasks.Parallel.xml", - "ref/dotnet/ja/System.Threading.Tasks.Parallel.xml", - "ref/dotnet/ko/System.Threading.Tasks.Parallel.xml", - "ref/dotnet/ru/System.Threading.Tasks.Parallel.xml", - "ref/dotnet/zh-hans/System.Threading.Tasks.Parallel.xml", - "ref/dotnet/zh-hant/System.Threading.Tasks.Parallel.xml", - "ref/net45/_._", - "ref/netcore50/System.Threading.Tasks.Parallel.dll", - "ref/netcore50/System.Threading.Tasks.Parallel.xml", - "ref/win8/_._", - "ref/wpa81/_._" - ] - }, - "System.Threading.Timer/4.0.0": { - "sha512": "BIdJH5/e4FnVl7TkRUiE3pWytp7OYiRUGtwUbyLewS/PhKiLepFetdtlW+FvDYOVn60Q2NMTrhHhJ51q+sVW5g==", - "type": "package", - "files": [ - "System.Threading.Timer.4.0.0.nupkg", - "System.Threading.Timer.4.0.0.nupkg.sha512", - "System.Threading.Timer.nuspec", - "lib/DNXCore50/System.Threading.Timer.dll", - "lib/net451/_._", - "lib/netcore50/System.Threading.Timer.dll", - "lib/win81/_._", - "lib/wpa81/_._", - "ref/dotnet/System.Threading.Timer.dll", - "ref/dotnet/System.Threading.Timer.xml", - "ref/dotnet/de/System.Threading.Timer.xml", - "ref/dotnet/es/System.Threading.Timer.xml", - "ref/dotnet/fr/System.Threading.Timer.xml", - "ref/dotnet/it/System.Threading.Timer.xml", - "ref/dotnet/ja/System.Threading.Timer.xml", - "ref/dotnet/ko/System.Threading.Timer.xml", - "ref/dotnet/ru/System.Threading.Timer.xml", - "ref/dotnet/zh-hans/System.Threading.Timer.xml", - "ref/dotnet/zh-hant/System.Threading.Timer.xml", - "ref/net451/_._", - "ref/netcore50/System.Threading.Timer.dll", - "ref/netcore50/System.Threading.Timer.xml", - "ref/win81/_._", - "ref/wpa81/_._", - "runtimes/win8-aot/lib/netcore50/System.Threading.Timer.dll" - ] - }, - "System.Xml.ReaderWriter/4.0.10": { - "sha512": "VdmWWMH7otrYV7D+cviUo7XjX0jzDnD/lTGSZTlZqfIQ5PhXk85j+6P0TK9od3PnOd5ZIM+pOk01G/J+3nh9/w==", - "type": "package", - "files": [ - "System.Xml.ReaderWriter.4.0.10.nupkg", - "System.Xml.ReaderWriter.4.0.10.nupkg.sha512", - "System.Xml.ReaderWriter.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.Xml.ReaderWriter.dll", - "lib/net46/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Xml.ReaderWriter.dll", - "ref/dotnet/System.Xml.ReaderWriter.xml", - "ref/dotnet/de/System.Xml.ReaderWriter.xml", - "ref/dotnet/es/System.Xml.ReaderWriter.xml", - "ref/dotnet/fr/System.Xml.ReaderWriter.xml", - "ref/dotnet/it/System.Xml.ReaderWriter.xml", - "ref/dotnet/ja/System.Xml.ReaderWriter.xml", - "ref/dotnet/ko/System.Xml.ReaderWriter.xml", - "ref/dotnet/ru/System.Xml.ReaderWriter.xml", - "ref/dotnet/zh-hans/System.Xml.ReaderWriter.xml", - "ref/dotnet/zh-hant/System.Xml.ReaderWriter.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - }, - "System.Xml.XDocument/4.0.10": { - "sha512": "+ej0g0INnXDjpS2tDJsLO7/BjyBzC+TeBXLeoGnvRrm4AuBH9PhBjjZ1IuKWOhCkxPkFognUOKhZHS2glIOlng==", - "type": "package", - "files": [ - "System.Xml.XDocument.4.0.10.nupkg", - "System.Xml.XDocument.4.0.10.nupkg.sha512", - "System.Xml.XDocument.nuspec", - "lib/MonoAndroid10/_._", - "lib/MonoTouch10/_._", - "lib/dotnet/System.Xml.XDocument.dll", - "lib/net46/_._", - "lib/xamarinios10/_._", - "lib/xamarinmac20/_._", - "ref/MonoAndroid10/_._", - "ref/MonoTouch10/_._", - "ref/dotnet/System.Xml.XDocument.dll", - "ref/dotnet/System.Xml.XDocument.xml", - "ref/dotnet/de/System.Xml.XDocument.xml", - "ref/dotnet/es/System.Xml.XDocument.xml", - "ref/dotnet/fr/System.Xml.XDocument.xml", - "ref/dotnet/it/System.Xml.XDocument.xml", - "ref/dotnet/ja/System.Xml.XDocument.xml", - "ref/dotnet/ko/System.Xml.XDocument.xml", - "ref/dotnet/ru/System.Xml.XDocument.xml", - "ref/dotnet/zh-hans/System.Xml.XDocument.xml", - "ref/dotnet/zh-hant/System.Xml.XDocument.xml", - "ref/net46/_._", - "ref/xamarinios10/_._", - "ref/xamarinmac20/_._" - ] - } - }, - "projectFileDependencyGroups": { - "": [], - ".NETFramework,Version=v3.5": [], - ".NETFramework,Version=v4.0": [], - ".NETFramework,Version=v4.5": [], - ".NETStandard,Version=v1.0": [ - "System.Collections >= 4.0.11", - "System.Diagnostics.Debug >= 4.0.11", - "System.Linq >= 4.1.0", - "System.Linq.Expressions >= 4.1.0", - "System.Runtime.Extensions >= 4.1.0", - "System.Text.RegularExpressions >= 4.1.0", - "System.Threading >= 4.0.11" - ], - "UAP,Version=v10.0": [ - "Microsoft.NETCore >= 5.0.0" - ] - }, - "tools": {}, - "projectFileToolGroups": {} -} \ No newline at end of file diff --git a/global.json b/global.json deleted file mode 100644 index 8962ab1..0000000 --- a/global.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "sdk": { - "version": "1.0.0-preview2-003121", - "runtime": "coreclr", - "architecture": "x86" - } -} From 4be7b5d43b8650c07b6862187c43799b6f3a2658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20K=C3=B6hler?= Date: Mon, 13 Feb 2017 23:17:57 +0100 Subject: [PATCH 2/3] Moved UnitTests to MSTest --- ObjectFillerNET.sln | 26 +- .../Bug68HashsetCanNotBeCreated.cs | 9 +- ...ug87ErrorWhenNameInParentIsSameAsParent.cs | 11 +- .../Bug89FillTypesInheritsFromDictionary.cs | 11 +- .../Bug89FillTypesInheritsFromList.cs | 11 +- .../CityNamesPluginTest.cs | 10 +- .../CollectionizerTest.cs | 30 +- .../CopyConstructorTest.cs | 12 +- .../CountryNamesPlugin.cs | 10 +- .../CreateInstanceTest.cs | 16 +- .../DateTimeRangeTest.cs | 26 +- .../DefaultDatatypeMappingsTest.cs | 16 +- .../EmailAddressesPluginTest.cs | 46 +-- Tynamix.ObjectFiller.Test/EnumTest.cs | 34 +- .../Extensions/AssertExtensions.cs | 12 + Tynamix.ObjectFiller.Test/HashStackTests.cs | 16 +- .../IpAddressPluginTest.cs | 52 ++- .../LibraryFillingTest.cs | 46 +-- Tynamix.ObjectFiller.Test/ListFillingTest.cs | 88 ++--- .../LoremIpsumPluginTest.cs | 34 +- .../ObjectFillerRecursiveTests.cs | 58 +-- Tynamix.ObjectFiller.Test/ObjectFillerTest.cs | 14 +- .../PatternGeneratorTest.cs | 153 ++++---- .../PersonFillingTest.cs | 106 +++--- Tynamix.ObjectFiller.Test/RandomAccessTest.cs | 12 +- Tynamix.ObjectFiller.Test/RandomizerTest.cs | 52 +-- Tynamix.ObjectFiller.Test/RangePluginTest.cs | 30 +- .../RealNamePluginTest.cs | 41 +- .../SaveFillerSetupTest.cs | 24 +- .../SequenceGeneratorTest.cs | 357 +++++++++--------- Tynamix.ObjectFiller.Test/SetupTests.cs | 51 +-- .../StreetNamesPluginTest.cs | 20 +- .../TestIgnoranceOfInheritance.cs | 16 +- .../Tynamix.ObjectFiller.Test.csproj | 39 +- 34 files changed, 743 insertions(+), 746 deletions(-) create mode 100644 Tynamix.ObjectFiller.Test/Extensions/AssertExtensions.cs diff --git a/ObjectFillerNET.sln b/ObjectFillerNET.sln index 13ace2b..6f39477 100644 --- a/ObjectFillerNET.sln +++ b/ObjectFillerNET.sln @@ -7,7 +7,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tynamix.ObjectFiller", "Tynamix.ObjectFiller\Tynamix.ObjectFiller.csproj", "{3208D63E-1A26-453C-8A31-03491CD23780}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tynamix.ObjectFiller.Test", "Tynamix.ObjectFiller.Test\Tynamix.ObjectFiller.Test.csproj", "{AF85E17E-BAA1-4580-A302-9935D8AC1E95}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tynamix.Objectfiller.Test", "Tynamix.Objectfiller.Test\Tynamix.Objectfiller.Test.csproj", "{76592E58-909C-4AE7-9FE4-6AD415AE1D80}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -31,18 +31,18 @@ Global {3208D63E-1A26-453C-8A31-03491CD23780}.Release|x64.Build.0 = Release|x64 {3208D63E-1A26-453C-8A31-03491CD23780}.Release|x86.ActiveCfg = Release|x86 {3208D63E-1A26-453C-8A31-03491CD23780}.Release|x86.Build.0 = Release|x86 - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|x64.ActiveCfg = Debug|x64 - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|x64.Build.0 = Debug|x64 - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|x86.ActiveCfg = Debug|x86 - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Debug|x86.Build.0 = Debug|x86 - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|Any CPU.Build.0 = Release|Any CPU - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|x64.ActiveCfg = Release|x64 - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|x64.Build.0 = Release|x64 - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|x86.ActiveCfg = Release|x86 - {AF85E17E-BAA1-4580-A302-9935D8AC1E95}.Release|x86.Build.0 = Release|x86 + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Debug|Any CPU.Build.0 = Debug|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Debug|x64.ActiveCfg = Debug|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Debug|x64.Build.0 = Debug|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Debug|x86.ActiveCfg = Debug|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Debug|x86.Build.0 = Debug|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Release|Any CPU.ActiveCfg = Release|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Release|Any CPU.Build.0 = Release|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Release|x64.ActiveCfg = Release|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Release|x64.Build.0 = Release|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Release|x86.ActiveCfg = Release|Any CPU + {76592E58-909C-4AE7-9FE4-6AD415AE1D80}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Tynamix.ObjectFiller.Test/BugfixTests/Bug68HashsetCanNotBeCreated.cs b/Tynamix.ObjectFiller.Test/BugfixTests/Bug68HashsetCanNotBeCreated.cs index d868d41..bc9e10c 100644 --- a/Tynamix.ObjectFiller.Test/BugfixTests/Bug68HashsetCanNotBeCreated.cs +++ b/Tynamix.ObjectFiller.Test/BugfixTests/Bug68HashsetCanNotBeCreated.cs @@ -2,24 +2,25 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ObjectFiller.Test.BugfixTests { using Tynamix.ObjectFiller; - using Xunit; + public class Bug68HashsetCanNotBeCreated { - [Fact] + [TestMethod] public void AHashsetShouldBeGenerated() { Filler> filler = new Filler>(); var hashset = filler.Create(); - Assert.NotNull(hashset); - Assert.True(hashset.Any()); + Assert.IsNotNull(hashset); + Assert.IsTrue(hashset.Any()); } } } diff --git a/Tynamix.ObjectFiller.Test/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs b/Tynamix.ObjectFiller.Test/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs index 520ca4e..9a6f5ea 100644 --- a/Tynamix.ObjectFiller.Test/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs +++ b/Tynamix.ObjectFiller.Test/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs @@ -2,12 +2,13 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ObjectFiller.Test.BugfixTests { using Tynamix.ObjectFiller; - using Xunit; + public class Bug87ErrorWhenNameInParentIsSameAsParent { @@ -24,15 +25,15 @@ public class Child public string MakeTheError { get; set; } } - [Fact] + [TestMethod] public void ParentShallGetFilledWithourError() { Filler filler = new Filler(); var filledObject = filler.Create(); - Assert.NotNull(filledObject); - Assert.NotNull(filledObject.MakeTheError); - Assert.False(string.IsNullOrWhiteSpace(filledObject.Child.MakeTheError)); + Assert.IsNotNull(filledObject); + Assert.IsNotNull(filledObject.MakeTheError); + Assert.IsFalse(string.IsNullOrWhiteSpace(filledObject.Child.MakeTheError)); } } } diff --git a/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs b/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs index e21fa27..41a718d 100644 --- a/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs +++ b/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs @@ -2,12 +2,13 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ObjectFiller.Test.BugfixTests { using Tynamix.ObjectFiller; - using Xunit; + public class Bug89FillTypesInheritsFromDictionary @@ -28,16 +29,16 @@ public class EntityBList : Dictionary public DateTime SomeDate { get; set; } } - [Fact] + [TestMethod] public void ADerivedDictionaryShallGetFilledAllProperties() { Filler filler = new Filler(); var result = filler.Create(); - Assert.NotNull(result.Bs); - Assert.InRange(result.Bs.SomeDate, DateTime.MinValue.AddSeconds(1), DateTime.MaxValue.AddSeconds(-1)); - Assert.True(result.Bs.Any()); + Assert.IsNotNull(result.Bs); + Assert.IsTrue(result.Bs.SomeDate > DateTime.MinValue.AddSeconds(1) && result.Bs.SomeDate < DateTime.MaxValue.AddSeconds(-1)); + Assert.IsTrue(result.Bs.Any()); } } } diff --git a/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromList.cs b/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromList.cs index d22e1ee..18b73cb 100644 --- a/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromList.cs +++ b/Tynamix.ObjectFiller.Test/BugfixTests/Bug89FillTypesInheritsFromList.cs @@ -2,12 +2,13 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ObjectFiller.Test.BugfixTests { using Tynamix.ObjectFiller; - using Xunit; + public class Bug89FillTypesInheritsFromList @@ -28,16 +29,16 @@ public class EntityBList : List public DateTime SomeDate { get; set; } } - [Fact] + [TestMethod] public void ADerivedListShallGetFilledAllProperties() { Filler filler = new Filler(); var result = filler.Create(); - Assert.NotNull(result.Bs); - Assert.InRange(result.Bs.SomeDate, DateTime.MinValue.AddSeconds(1), DateTime.MaxValue.AddSeconds(-1)); - Assert.True(result.Bs.Any()); + Assert.IsNotNull(result.Bs); + Assert.IsTrue(result.Bs.SomeDate > DateTime.MinValue.AddSeconds(1) && result.Bs.SomeDate < DateTime.MaxValue.AddSeconds(-1)); + Assert.IsTrue(result.Bs.Any()); } } } diff --git a/Tynamix.ObjectFiller.Test/CityNamesPluginTest.cs b/Tynamix.ObjectFiller.Test/CityNamesPluginTest.cs index f3caad6..bcaa4bd 100644 --- a/Tynamix.ObjectFiller.Test/CityNamesPluginTest.cs +++ b/Tynamix.ObjectFiller.Test/CityNamesPluginTest.cs @@ -1,19 +1,21 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + namespace ObjectFiller.Test { - using Xunit; + using Tynamix.ObjectFiller; - + [TestClass] public class CityNamesPluginTest { - [Fact] + [TestMethod] public void RandomNameIsReturned() { var sut = new CityName(); var value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); + Assert.IsFalse(string.IsNullOrEmpty(value)); } } } \ No newline at end of file diff --git a/Tynamix.ObjectFiller.Test/CollectionizerTest.cs b/Tynamix.ObjectFiller.Test/CollectionizerTest.cs index 4edca68..ef2f5d7 100644 --- a/Tynamix.ObjectFiller.Test/CollectionizerTest.cs +++ b/Tynamix.ObjectFiller.Test/CollectionizerTest.cs @@ -2,8 +2,9 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Tynamix.ObjectFiller; -using Xunit; + namespace ObjectFiller.Test { @@ -16,9 +17,10 @@ public class CollectionizerPoco public ArrayList ArrayList { get; set; } } + [TestClass] public class CollectionizerTest { - [Fact] + [TestMethod] public void TestCityNames() { var filler = new Filler(); @@ -28,11 +30,11 @@ public void TestCityNames() .Use(new Collectionizer(new MnemonicString(1, 20, 25), 3, 10)); var arrayList = filler.Create(); - Assert.True(arrayList.ArrayList.Count >= 3 && arrayList.ArrayList.Count <= 10); - Assert.True(arrayList.ArrayList.ToArray().Cast().All(x => x.Length >= 20 && x.Length <= 25)); + Assert.IsTrue(arrayList.ArrayList.Count >= 3 && arrayList.ArrayList.Count <= 10); + Assert.IsTrue(arrayList.ArrayList.ToArray().Cast().All(x => x.Length >= 20 && x.Length <= 25)); } - [Fact] + [TestMethod] public void TestMnemonicStringPlugin() { var filler = new Filler(); @@ -42,11 +44,11 @@ public void TestMnemonicStringPlugin() .Use(new Collectionizer(new MnemonicString(1, 20, 25), 3, 10)); var collection = filler.Create(); - Assert.True(collection.MnemonicStrings.Count() >= 3 && collection.MnemonicStrings.Count() <= 10); - Assert.True(collection.MnemonicStrings.All(x => x.Length >= 20 && x.Length <= 25)); + Assert.IsTrue(collection.MnemonicStrings.Count() >= 3 && collection.MnemonicStrings.Count() <= 10); + Assert.IsTrue(collection.MnemonicStrings.All(x => x.Length >= 20 && x.Length <= 25)); } - [Fact] + [TestMethod] public void TestMnemonicStringPluginTest() { var filler = new Filler(); @@ -56,14 +58,14 @@ public void TestMnemonicStringPluginTest() var collection = filler.Create(); - Assert.NotNull(collection); - Assert.NotNull(collection.MnemonicStrings); - Assert.NotEmpty(collection.MnemonicStrings); + Assert.IsNotNull(collection); + Assert.IsNotNull(collection.MnemonicStrings); + Assert.IsTrue(collection.MnemonicStrings.Any()); collection.MnemonicStrings.ToList().ForEach(s => Debug.WriteLine(s)); } - [Fact] + [TestMethod] public void TestIntRangePlugin() { var filler = new Filler(); @@ -73,8 +75,8 @@ public void TestIntRangePlugin() .Use(new Collectionizer(new IntRange(10, 15), 3, 10)); var collection = filler.Create(); - Assert.True(collection.IntRange.Count >= 3 && collection.IntRange.Count() <= 10); - Assert.True(collection.IntRange.All(x => x >= 10 && x <= 15)); + Assert.IsTrue(collection.IntRange.Count >= 3 && collection.IntRange.Count() <= 10); + Assert.IsTrue(collection.IntRange.All(x => x >= 10 && x <= 15)); } } } diff --git a/Tynamix.ObjectFiller.Test/CopyConstructorTest.cs b/Tynamix.ObjectFiller.Test/CopyConstructorTest.cs index 1ba4e0e..64fe834 100644 --- a/Tynamix.ObjectFiller.Test/CopyConstructorTest.cs +++ b/Tynamix.ObjectFiller.Test/CopyConstructorTest.cs @@ -1,27 +1,27 @@ using System; -using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class CopyConstructorTest { - [Fact] + [TestMethod] public void WhenClassWithCopyConstructorIsCreatedNoExceptionShallBeThrown() { var f = new Filler(); var cc = f.Create(); - Assert.NotNull(cc); + Assert.IsNotNull(cc); } - [Fact] + [TestMethod] public void WhenClassWithJustCopyConstructorIsCreatedAExceptionShallBeThrown() { var f = new Filler(); - Assert.Throws(() => f.Create()); + Assert.ThrowsException(() => f.Create()); } } diff --git a/Tynamix.ObjectFiller.Test/CountryNamesPlugin.cs b/Tynamix.ObjectFiller.Test/CountryNamesPlugin.cs index d838d6f..2573dce 100644 --- a/Tynamix.ObjectFiller.Test/CountryNamesPlugin.cs +++ b/Tynamix.ObjectFiller.Test/CountryNamesPlugin.cs @@ -1,19 +1,21 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + namespace ObjectFiller.Test { - using Xunit; + using Tynamix.ObjectFiller; - + [TestClass] public class CountryNamesPlugin { - [Fact] + [TestMethod] public void RandomNameIsReturned() { var sut = new CountryName(); var value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); + Assert.IsFalse(string.IsNullOrEmpty(value)); } } } \ No newline at end of file diff --git a/Tynamix.ObjectFiller.Test/CreateInstanceTest.cs b/Tynamix.ObjectFiller.Test/CreateInstanceTest.cs index ed17949..4977083 100644 --- a/Tynamix.ObjectFiller.Test/CreateInstanceTest.cs +++ b/Tynamix.ObjectFiller.Test/CreateInstanceTest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; using System.Linq; -using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Tynamix.ObjectFiller; namespace ObjectFiller.Test @@ -49,11 +49,11 @@ public ParentOfParent() } - + [TestClass] public class CreateInstanceTest { - [Fact] + [TestMethod] public void TestCreateInstanceOfChildOne() { Filler p = new Filler(); @@ -64,12 +64,12 @@ public void TestCreateInstanceOfChildOne() var pop = p.Create(); - Assert.NotNull(pop); - Assert.NotNull(pop.Parents); - Assert.True(pop.Parents.All(x => x is ChildOne)); - Assert.False(pop.Parents.Any(x => x is ChildTwo)); + Assert.IsNotNull(pop); + Assert.IsNotNull(pop.Parents); + Assert.IsTrue(pop.Parents.All(x => x is ChildOne)); + Assert.IsFalse(pop.Parents.Any(x => x is ChildTwo)); - Assert.True(pop.Parents.Cast().All(x => x.Name == "TEST")); + Assert.IsTrue(pop.Parents.Cast().All(x => x.Name == "TEST")); } diff --git a/Tynamix.ObjectFiller.Test/DateTimeRangeTest.cs b/Tynamix.ObjectFiller.Test/DateTimeRangeTest.cs index da23300..384d09c 100644 --- a/Tynamix.ObjectFiller.Test/DateTimeRangeTest.cs +++ b/Tynamix.ObjectFiller.Test/DateTimeRangeTest.cs @@ -1,9 +1,11 @@ -namespace ObjectFiller.Test +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace ObjectFiller.Test { using System; using System.Linq; - using Xunit; + using Tynamix.ObjectFiller; @@ -12,10 +14,10 @@ public class DateRangeTestClass public DateTime Date { get; set; } } - + [TestClass] public class DateTimeRangeTest { - [Fact] + [TestMethod] public void WhenGettingDatesBetweenNowAnd31DaysAgo() { Filler filler = new Filler(); @@ -25,10 +27,10 @@ public void WhenGettingDatesBetweenNowAnd31DaysAgo() var d = filler.Create(1000); - Assert.True(d.All(x => x.Date < DateTime.Now && x.Date > DateTime.Now.AddDays(-31))); + Assert.IsTrue(d.All(x => x.Date < DateTime.Now && x.Date > DateTime.Now.AddDays(-31))); } - [Fact] + [TestMethod] public void WhenStartDateIsBiggerThenEndDateTheDatesShouldBeSwitched() { Filler filler = new Filler(); @@ -38,10 +40,10 @@ public void WhenStartDateIsBiggerThenEndDateTheDatesShouldBeSwitched() var d = filler.Create(1000); - Assert.True(d.All(x => x.Date < DateTime.Now && x.Date > DateTime.Now.AddDays(-31))); + Assert.IsTrue(d.All(x => x.Date < DateTime.Now && x.Date > DateTime.Now.AddDays(-31))); } - [Fact] + [TestMethod] public void WhenStartDateAndEndDateIsSetItShouldFindOnlyDatesInBetweenThisTwoDates() { var startDate = new DateTime(2000, 11, 10); @@ -53,10 +55,10 @@ public void WhenStartDateAndEndDateIsSetItShouldFindOnlyDatesInBetweenThisTwoDat var d = filler.Create(1000); d.ToList().ForEach(x => Console.WriteLine(x.Date)); - Assert.True(d.All(x => x.Date < endDate && x.Date > startDate)); + Assert.IsTrue(d.All(x => x.Date < endDate && x.Date > startDate)); } - [Fact] + [TestMethod] public void WhenConstructorWithDateTimeNowWillBeCalledNoExceptionShouldBeThrown() { Filler filler = new Filler(); @@ -65,8 +67,8 @@ public void WhenConstructorWithDateTimeNowWillBeCalledNoExceptionShouldBeThrown( var dateTime = filler.Create(); - Assert.True(dateTime.Date > DateTime.MinValue); - Assert.True(dateTime.Date < DateTime.MaxValue); + Assert.IsTrue(dateTime.Date > DateTime.MinValue); + Assert.IsTrue(dateTime.Date < DateTime.MaxValue); } } } \ No newline at end of file diff --git a/Tynamix.ObjectFiller.Test/DefaultDatatypeMappingsTest.cs b/Tynamix.ObjectFiller.Test/DefaultDatatypeMappingsTest.cs index 90269a3..02914f2 100644 --- a/Tynamix.ObjectFiller.Test/DefaultDatatypeMappingsTest.cs +++ b/Tynamix.ObjectFiller.Test/DefaultDatatypeMappingsTest.cs @@ -1,33 +1,33 @@ using System; using System.Diagnostics; using System.Linq; - using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class DefaultDatatypeMappingsTest { - [Fact] + [TestMethod] public void Ensure_that_double_does_not_return_infinity() { var filler = new Filler(); var myClass = filler.Create(); - Assert.False(double.IsInfinity(myClass._double)); + Assert.IsFalse(double.IsInfinity(myClass._double)); - Assert.False(float.IsInfinity(myClass._float)); + Assert.IsFalse(float.IsInfinity(myClass._float)); } - [Fact] + [TestMethod] public void Ensure_that_each_primitive_datatype_is_mapped_by_default() { var filler = new Filler(); var myClasses = filler.Create(100).ToArray(); foreach (var myClass in myClasses) { - Assert.NotEqual(default(Guid), myClass._Guid); - Assert.NotEqual(default(decimal), myClass._Decimal); + Assert.AreNotEqual(default(Guid), myClass._Guid); + Assert.AreNotEqual(default(decimal), myClass._Decimal); } } diff --git a/Tynamix.ObjectFiller.Test/EmailAddressesPluginTest.cs b/Tynamix.ObjectFiller.Test/EmailAddressesPluginTest.cs index 39eabb5..123a950 100644 --- a/Tynamix.ObjectFiller.Test/EmailAddressesPluginTest.cs +++ b/Tynamix.ObjectFiller.Test/EmailAddressesPluginTest.cs @@ -1,10 +1,10 @@ using System.Text.RegularExpressions; -using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class EmailAddressesPluginTests { public string StandardAssertMessage = "Given value does not match e-mail address standard."; @@ -16,34 +16,34 @@ public class EmailAddressesPluginTests private static Regex RFC5322RegEx = new Regex(@"[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", RegexOptions.IgnoreCase); - [Fact] + [TestMethod] public void DefaultModeShouldReturnValidEmailAdress() { var value = new EmailAddresses().GetValue(); - Assert.True(RFC5322RegEx.IsMatch(value)); + Assert.IsTrue(RFC5322RegEx.IsMatch(value)); } - [Fact] + [TestMethod] public void TwoCallsCreateTwoDifferentEMailAddresses() { var sut = new EmailAddresses(); var firstValue = sut.GetValue(); var secondValue = sut.GetValue(); - Assert.NotEqual(firstValue, secondValue); + Assert.AreNotEqual(firstValue, secondValue); } - [Fact] + [TestMethod] public void EMailAddressMustBeValidWithRealNames() { var sut = new EmailAddresses(); var value = sut.GetValue(); - Assert.True(RFC5322RegEx.IsMatch(value)); + Assert.IsTrue(RFC5322RegEx.IsMatch(value)); } - [Fact] + [TestMethod] public void DomainNamesAreUsedFromRandomData() { var referenceValue = "google.com"; @@ -53,11 +53,11 @@ public void DomainNamesAreUsedFromRandomData() var result = sut.GetValue(); - Assert.EndsWith(referenceValue, result); - Assert.True(RFC5322RegEx.IsMatch(result)); + Assert.IsTrue(result.EndsWith(referenceValue)); + Assert.IsTrue(RFC5322RegEx.IsMatch(result)); } - [Fact] + [TestMethod] public void PluginMustEnsureValidAddressesEvenAnInvalidDomainNameIsProvided() { var referenceValue = "googlecom"; @@ -66,10 +66,10 @@ public void PluginMustEnsureValidAddressesEvenAnInvalidDomainNameIsProvided() var sut = new EmailAddresses(fake, fake); var result = sut.GetValue(); - Assert.True(RFC5322RegEx.IsMatch(result)); + Assert.IsTrue(RFC5322RegEx.IsMatch(result)); } - [Fact] + [TestMethod] public void LocalPathMustBeUsedFromRandomData() { var referenceValue = "karl"; @@ -79,11 +79,11 @@ public void LocalPathMustBeUsedFromRandomData() var result = sut.GetValue(); - Assert.StartsWith(referenceValue, result); - Assert.True(RFC5322RegEx.IsMatch(result)); + Assert.IsTrue(result.StartsWith(referenceValue)); + Assert.IsTrue(RFC5322RegEx.IsMatch(result)); } - [Fact] + [TestMethod] public void PluginMustEnsureValidAddressesEvenAnInvalidLocalPartIsProvided() { var referenceValue = "ka rl"; @@ -93,10 +93,10 @@ public void PluginMustEnsureValidAddressesEvenAnInvalidLocalPartIsProvided() var result = sut.GetValue(); - Assert.True(RFC5322RegEx.IsMatch(result)); + Assert.IsTrue(RFC5322RegEx.IsMatch(result)); } - [Fact] + [TestMethod] public void GivenDomainRootIsAttachedToGeneratedEmailAddress() { var domainRoot = ".de"; @@ -104,11 +104,11 @@ public void GivenDomainRootIsAttachedToGeneratedEmailAddress() var result = sut.GetValue(); - Assert.EndsWith(domainRoot, result); - Assert.True(RFC5322RegEx.IsMatch(result)); + Assert.IsTrue(result.EndsWith(domainRoot)); + Assert.IsTrue(RFC5322RegEx.IsMatch(result)); } - [Fact] + [TestMethod] public void EmailAddressesWorksInCombinationWithRealNamesPlugin() { var realNames = new RealNames(NameStyle.FirstNameLastName); @@ -116,7 +116,7 @@ public void EmailAddressesWorksInCombinationWithRealNamesPlugin() var sut = new EmailAddresses(realNames); var result = sut.GetValue(); - Assert.True(RFC5322RegEx.IsMatch(result)); + Assert.IsTrue(RFC5322RegEx.IsMatch(result)); } } } diff --git a/Tynamix.ObjectFiller.Test/EnumTest.cs b/Tynamix.ObjectFiller.Test/EnumTest.cs index cc2a22e..a14ee5b 100644 --- a/Tynamix.ObjectFiller.Test/EnumTest.cs +++ b/Tynamix.ObjectFiller.Test/EnumTest.cs @@ -1,13 +1,13 @@ using System; - using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class EnumTest { - [Fact] + [TestMethod] public void Must_support_enums_out_of_the_box() { var filler = new Filler(); @@ -19,30 +19,30 @@ public void Must_support_enums_out_of_the_box() { var c = filler.Create(); - Assert.True( + Assert.IsTrue( c.Standard == StandardEnum.A || c.Standard == StandardEnum.B || c.Standard == StandardEnum.C); - Assert.True( + Assert.IsTrue( c.Numbered == NumberedEnum.A || c.Numbered == NumberedEnum.B || c.Numbered == NumberedEnum.C); - Assert.True( + Assert.IsTrue( c.Flags == FlagsEnum.A || c.Flags == FlagsEnum.B || c.Flags == FlagsEnum.C); - Assert.True((int)c.Nasty == 0); + Assert.IsTrue((int)c.Nasty == 0); - Assert.True(c.Manual == ManualSetupEnum.B); + Assert.IsTrue(c.Manual == ManualSetupEnum.B); - Assert.True((int)c.Ignored == 0); + Assert.IsTrue((int)c.Ignored == 0); } } - [Fact] + [TestMethod] public void Must_support_class_with_enums_as_ctor_out_of_the_box() { var filler = new Filler(); @@ -52,34 +52,34 @@ public void Must_support_class_with_enums_as_ctor_out_of_the_box() { var c = filler.Create(); - Assert.True( + Assert.IsTrue( c.Standard == StandardEnum.A || c.Standard == StandardEnum.B || c.Standard == StandardEnum.C); - Assert.True( + Assert.IsTrue( c.Numbered == NumberedEnum.A || c.Numbered == NumberedEnum.B || c.Numbered == NumberedEnum.C); - Assert.True( + Assert.IsTrue( c.Flags == FlagsEnum.A || c.Flags == FlagsEnum.B || c.Flags == FlagsEnum.C); - Assert.True((int)c.Nasty == 0); + Assert.IsTrue((int)c.Nasty == 0); - Assert.True(c.Manual == ManualSetupEnum.B); + Assert.IsTrue(c.Manual == ManualSetupEnum.B); } } - [Fact] + [TestMethod] public void FillNullableEnum() { var filler = new Filler(); var c = filler.Create(); - Assert.True( + Assert.IsTrue( c.NullableEnum == StandardEnum.A || c.NullableEnum == StandardEnum.B || c.NullableEnum == StandardEnum.C); diff --git a/Tynamix.ObjectFiller.Test/Extensions/AssertExtensions.cs b/Tynamix.ObjectFiller.Test/Extensions/AssertExtensions.cs new file mode 100644 index 0000000..2f05c42 --- /dev/null +++ b/Tynamix.ObjectFiller.Test/Extensions/AssertExtensions.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tynamix.Objectfiller.Test.Extensions +{ + class AssertExtensions + { + } +} diff --git a/Tynamix.ObjectFiller.Test/HashStackTests.cs b/Tynamix.ObjectFiller.Test/HashStackTests.cs index 26979a4..19262aa 100644 --- a/Tynamix.ObjectFiller.Test/HashStackTests.cs +++ b/Tynamix.ObjectFiller.Test/HashStackTests.cs @@ -1,35 +1,35 @@ using System; -using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class HashStackTests { - [Fact] + [TestMethod] public void HashStack_PushSameItem_ReturnsFalse() { var s = new HashStack(); s.Push(1); var added = s.Push(1); - Assert.False(added); + Assert.IsFalse(added); } - [Fact] + [TestMethod] public void HashStack_ContainsTest() { var s = new HashStack(); s.Push(5); - Assert.Equal(true, s.Contains(5)); + Assert.AreEqual(true, s.Contains(5)); } - [Fact] + [TestMethod] public void HashStack_PopWithNoElements_Throws() { var s = new HashStack(); - Assert.Throws(()=> s.Pop()); + Assert.ThrowsException(()=> s.Pop()); } } } \ No newline at end of file diff --git a/Tynamix.ObjectFiller.Test/IpAddressPluginTest.cs b/Tynamix.ObjectFiller.Test/IpAddressPluginTest.cs index fd6562d..c3cebc3 100644 --- a/Tynamix.ObjectFiller.Test/IpAddressPluginTest.cs +++ b/Tynamix.ObjectFiller.Test/IpAddressPluginTest.cs @@ -1,9 +1,10 @@ -namespace ObjectFiller.Test +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace ObjectFiller.Test { - using System.Security.Policy; using Tynamix.ObjectFiller; - using Xunit; + [TestClass] public class IpAddressPluginTest { @@ -12,7 +13,7 @@ internal class IpAddressClass public string IpAddress { get; set; } } - [Fact] + [TestMethod] public void TestIpAddressGenerator() { Filler filler = new Filler(); @@ -24,14 +25,14 @@ public void TestIpAddressGenerator() var ipAddresses = result.IpAddress.Split('.'); - Assert.Collection(ipAddresses, - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255)); + + Assert.IsTrue(int.Parse(ipAddresses[0]) > 0 && int.Parse(ipAddresses[0]) <= 255); + Assert.IsTrue(int.Parse(ipAddresses[1]) > 0 && int.Parse(ipAddresses[1]) <= 255); + Assert.IsTrue(int.Parse(ipAddresses[2]) > 0 && int.Parse(ipAddresses[2]) <= 255); + Assert.IsTrue(int.Parse(ipAddresses[3]) > 0 && int.Parse(ipAddresses[3]) <= 255); } - [Fact] + [TestMethod] public void TestIpAddressGeneratorWithWrongNumbersAndFirstSegmentMaximumOf10() { Filler filler = new Filler(); @@ -42,14 +43,13 @@ public void TestIpAddressGeneratorWithWrongNumbersAndFirstSegmentMaximumOf10() var ipAddresses = result.IpAddress.Split('.'); - Assert.Collection(ipAddresses, - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255)); + Assert.IsTrue(int.Parse(ipAddresses[0]) > 0 && int.Parse(ipAddresses[0]) <= 10); + Assert.IsTrue(int.Parse(ipAddresses[1]) > 0 && int.Parse(ipAddresses[1]) <= 255); + Assert.IsTrue(int.Parse(ipAddresses[2]) > 0 && int.Parse(ipAddresses[2]) <= 255); + Assert.IsTrue(int.Parse(ipAddresses[3]) > 0 && int.Parse(ipAddresses[3]) <= 255); } - [Fact] + [TestMethod] public void TestIpAddressGeneratorWithSegmentSetup() { Filler filler = new Filler(); @@ -60,14 +60,13 @@ public void TestIpAddressGeneratorWithSegmentSetup() var ipAddresses = result.IpAddress.Split('.'); - Assert.Collection(ipAddresses, - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10)); + Assert.IsTrue(int.Parse(ipAddresses[0]) > 0 && int.Parse(ipAddresses[0]) <= 10); + Assert.IsTrue(int.Parse(ipAddresses[1]) > 0 && int.Parse(ipAddresses[1]) <= 10); + Assert.IsTrue(int.Parse(ipAddresses[2]) > 0 && int.Parse(ipAddresses[2]) <= 10); + Assert.IsTrue(int.Parse(ipAddresses[3]) > 0 && int.Parse(ipAddresses[3]) <= 10); } - [Fact] + [TestMethod] public void TestIpAddressGeneratorWithFirstTwoSegmentSetup() { Filler filler = new Filler(); @@ -78,11 +77,10 @@ public void TestIpAddressGeneratorWithFirstTwoSegmentSetup() var ipAddresses = result.IpAddress.Split('.'); - Assert.Collection(ipAddresses, - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255)); + Assert.IsTrue(int.Parse(ipAddresses[0]) > 0 && int.Parse(ipAddresses[0]) <= 10); + Assert.IsTrue(int.Parse(ipAddresses[1]) > 0 && int.Parse(ipAddresses[1]) <= 10); + Assert.IsTrue(int.Parse(ipAddresses[2]) > 0 && int.Parse(ipAddresses[2]) <= 255); + Assert.IsTrue(int.Parse(ipAddresses[3]) > 0 && int.Parse(ipAddresses[3]) <= 255); } } } \ No newline at end of file diff --git a/Tynamix.ObjectFiller.Test/LibraryFillingTest.cs b/Tynamix.ObjectFiller.Test/LibraryFillingTest.cs index ed09df7..9f11e6c 100644 --- a/Tynamix.ObjectFiller.Test/LibraryFillingTest.cs +++ b/Tynamix.ObjectFiller.Test/LibraryFillingTest.cs @@ -1,15 +1,15 @@ using System; using System.Linq; -using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using ObjectFiller.Test.TestPoco.Library; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class LibraryFillingTest { - [Fact] + [TestMethod] public void TestFillLibraryWithSimpleTypes() { Filler lib = new Filler(); @@ -17,13 +17,13 @@ public void TestFillLibraryWithSimpleTypes() .OnProperty(x => x.Books).IgnoreIt(); LibraryConstructorWithSimple filledLib = lib.Create(); - Assert.Null(filledLib.Books); - Assert.NotNull(filledLib); - Assert.NotNull(filledLib.City); - Assert.NotNull(filledLib.Name); + Assert.IsNull(filledLib.Books); + Assert.IsNotNull(filledLib); + Assert.IsNotNull(filledLib.City); + Assert.IsNotNull(filledLib.Name); } - [Fact] + [TestMethod] public void TestFillLibraryWithListOfBooks() { Filler lib = new Filler(); @@ -33,12 +33,12 @@ public void TestFillLibraryWithListOfBooks() LibraryConstructorList filledLib = lib.Create(); - Assert.NotNull(filledLib); - Assert.NotNull(filledLib.Books); - Assert.NotNull(filledLib.Name); + Assert.IsNotNull(filledLib); + Assert.IsNotNull(filledLib.Books); + Assert.IsNotNull(filledLib.Name); } - [Fact] + [TestMethod] public void TestFillLibraryWithListOfIBooks() { Filler lib = new Filler(); @@ -48,10 +48,10 @@ public void TestFillLibraryWithListOfIBooks() LibraryConstructorList filledLib = lib.Create(); - Assert.NotNull(filledLib.Books); + Assert.IsNotNull(filledLib.Books); } - [Fact] + [TestMethod] public void TestFillLibraryWithPocoOfABook() { Filler lib = new Filler(); @@ -59,11 +59,11 @@ public void TestFillLibraryWithPocoOfABook() .OnProperty(x => x.Books).IgnoreIt(); LibraryConstructorPoco filledLib = lib.Create(); - Assert.NotNull(filledLib.Books); - Assert.Equal(1, filledLib.Books.Count); + Assert.IsNotNull(filledLib.Books); + Assert.AreEqual(1, filledLib.Books.Count); } - [Fact] + [TestMethod] public void TestFillLibraryWithConfiguredPocoOfABook() { Filler lib = new Filler(); @@ -75,11 +75,11 @@ public void TestFillLibraryWithConfiguredPocoOfABook() var l = lib.Create(); - Assert.Equal("ABook", ((Book)l.Books.ToList()[0]).Name); + Assert.AreEqual("ABook", ((Book)l.Books.ToList()[0]).Name); } - [Fact] + [TestMethod] public void TestFillLibraryWithDictionary() { Filler lib = new Filler(); @@ -88,10 +88,10 @@ public void TestFillLibraryWithDictionary() .OnProperty(x => x.Books).IgnoreIt(); LibraryConstructorDictionary filledLib = lib.Create(); - Assert.NotNull(filledLib.Books); + Assert.IsNotNull(filledLib.Books); } - [Fact] + [TestMethod] public void TestFillLibraryWithDictionaryAndPoco() { Filler lib = new Filler(); @@ -101,8 +101,8 @@ public void TestFillLibraryWithDictionaryAndPoco() LibraryConstructorDictionary filledLib = lib.Create(); - Assert.NotNull(filledLib.Books); - Assert.NotNull(filledLib.Name); + Assert.IsNotNull(filledLib.Books); + Assert.IsNotNull(filledLib.Name); } diff --git a/Tynamix.ObjectFiller.Test/ListFillingTest.cs b/Tynamix.ObjectFiller.Test/ListFillingTest.cs index 11d8821..083e0e4 100644 --- a/Tynamix.ObjectFiller.Test/ListFillingTest.cs +++ b/Tynamix.ObjectFiller.Test/ListFillingTest.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; - using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using ObjectFiller.Test.TestPoco.ListTest; using Tynamix.ObjectFiller; @@ -9,10 +9,10 @@ namespace ObjectFiller.Test { using ObjectFiller.Test.TestPoco; - + [TestClass] public class ListFillingTest { - [Fact] + [TestMethod] public void TestFillAllListsExceptArray() { Filler eFiller = new Filler(); @@ -21,16 +21,16 @@ public void TestFillAllListsExceptArray() EntityCollection entity = eFiller.Create(); - Assert.NotNull(entity); - Assert.NotNull(entity.EntityList); - Assert.NotNull(entity.EntityICollection); - Assert.NotNull(entity.EntityIEnumerable); - Assert.NotNull(entity.EntityIList); - Assert.NotNull(entity.EntityHashset); + Assert.IsNotNull(entity); + Assert.IsNotNull(entity.EntityList); + Assert.IsNotNull(entity.EntityICollection); + Assert.IsNotNull(entity.EntityIEnumerable); + Assert.IsNotNull(entity.EntityIList); + Assert.IsNotNull(entity.EntityHashset); } - [Fact] + [TestMethod] public void TestUseEnumerable() { Filler eFiller = new Filler(); @@ -48,11 +48,11 @@ public void TestUseEnumerable() for (int i = 0; i < ec.EntityList.Count; i++) { int lastPowNum = (int)Math.Pow(2, i + 1); - Assert.Equal(lastPowNum, ec.EntityList[i].Id); + Assert.AreEqual(lastPowNum, ec.EntityList[i].Id); } } - [Fact] + [TestMethod] public void TestFillList() { Filler eFiller = new Filler(); @@ -60,91 +60,91 @@ public void TestFillList() .OnProperty(ec => ec.EntityArray).Use(GetArray); EntityCollection entity = eFiller.Create(); - Assert.NotNull(entity); - Assert.NotNull(entity.EntityList); - Assert.NotNull(entity.EntityICollection); - Assert.NotNull(entity.EntityIEnumerable); - Assert.NotNull(entity.EntityIList); - Assert.NotNull(entity.EntityArray); - Assert.NotNull(entity.EntityHashset); + Assert.IsNotNull(entity); + Assert.IsNotNull(entity.EntityList); + Assert.IsNotNull(entity.EntityICollection); + Assert.IsNotNull(entity.EntityIEnumerable); + Assert.IsNotNull(entity.EntityIList); + Assert.IsNotNull(entity.EntityArray); + Assert.IsNotNull(entity.EntityHashset); } - [Fact] + [TestMethod] public void TestIgnoreAllUnknownTypesWithOutException() { Filler filler = new Filler(); filler.Setup().IgnoreAllUnknownTypes(); var entity = filler.Create(); - Assert.Null(entity.EntityArray); - Assert.NotNull(entity); - Assert.NotNull(entity.EntityList); - Assert.NotNull(entity.EntityICollection); - Assert.NotNull(entity.EntityIEnumerable); - Assert.NotNull(entity.EntityIList); - Assert.NotNull(entity.EntityHashset); + Assert.IsNull(entity.EntityArray); + Assert.IsNotNull(entity); + Assert.IsNotNull(entity.EntityList); + Assert.IsNotNull(entity.EntityICollection); + Assert.IsNotNull(entity.EntityIEnumerable); + Assert.IsNotNull(entity.EntityIList); + Assert.IsNotNull(entity.EntityHashset); } - [Fact] + [TestMethod] public void TestIgnoreAllUnknownTypesWithException() { Filler filler = new Filler(); - Assert.Throws(()=>filler.Create()); + Assert.ThrowsException(()=>filler.Create()); } - [Fact] + [TestMethod] public void GenerateTestDataForASortedList() { Filler> filler = new Filler>(); filler.Setup().OnType().Use(Enumerable.Range(1, 1000)); var result = filler.Create(10).ToList(); - Assert.Equal(10, result.Count); + Assert.AreEqual(10, result.Count); foreach (var sortedList in result) { - Assert.True(sortedList.Any()); + Assert.IsTrue(sortedList.Any()); } } - [Fact] + [TestMethod] public void GenerateTestDataForASimpleList() { Filler> filler = new Filler>(); filler.Setup().IgnoreAllUnknownTypes(); var createdList = filler.Create(); - Assert.True(createdList.Any()); + Assert.IsTrue(createdList.Any()); foreach (EntityCollection entityCollection in createdList) { - Assert.True(entityCollection.EntityICollection.Any()); - Assert.True(entityCollection.EntityIEnumerable.Any()); - Assert.True(entityCollection.EntityIList.Any()); - Assert.True(entityCollection.EntityList.Any()); - Assert.NotNull(entityCollection.EntityHashset.Any()); + Assert.IsTrue(entityCollection.EntityICollection.Any()); + Assert.IsTrue(entityCollection.EntityIEnumerable.Any()); + Assert.IsTrue(entityCollection.EntityIList.Any()); + Assert.IsTrue(entityCollection.EntityList.Any()); + Assert.IsNotNull(entityCollection.EntityHashset.Any()); } } - [Fact] + [TestMethod] public void GenerateTestDataForADictionary() { Filler> filler = new Filler>(); var result = filler.Create(10).ToList(); - Assert.Equal(10, result.Count); + Assert.AreEqual(10, result.Count); foreach (var sortedList in result) { - Assert.True(sortedList.Any()); + Assert.IsTrue(sortedList.Any()); } } - [Fact] + [TestMethod] public void GenerateDictionaryWithEnumeration() { var amountOfEnumValues = Enum.GetValues(typeof(TestEnum)).Length; var filler = new Filler>(); var result = filler.Create(); - Assert.Equal(amountOfEnumValues, result.Count); + Assert.AreEqual(amountOfEnumValues, result.Count); } private Entity[,] GetArray() diff --git a/Tynamix.ObjectFiller.Test/LoremIpsumPluginTest.cs b/Tynamix.ObjectFiller.Test/LoremIpsumPluginTest.cs index 58996ab..6926c11 100644 --- a/Tynamix.ObjectFiller.Test/LoremIpsumPluginTest.cs +++ b/Tynamix.ObjectFiller.Test/LoremIpsumPluginTest.cs @@ -1,6 +1,6 @@ using System; using System.Linq; -using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using ObjectFiller.Test.TestPoco.Library; using Tynamix.ObjectFiller; @@ -8,11 +8,11 @@ namespace ObjectFiller.Test { using System.Collections.Generic; - + [TestClass] public class LoremIpsumPluginTest { - [Fact] + [TestMethod] public void Test_With_Many_MinWords_And_Many_MinSentences() { Filler book = new Filler(); @@ -21,10 +21,10 @@ public void Test_With_Many_MinWords_And_Many_MinSentences() var b = book.Create(); - Assert.NotNull(b); + Assert.IsNotNull(b); } - [Fact] + [TestMethod] public void Test_With_German_Default_Settings() { Filler book = new Filler(); @@ -33,10 +33,10 @@ public void Test_With_German_Default_Settings() var b = book.Create(); - Assert.NotNull(b); + Assert.IsNotNull(b); } - [Fact] + [TestMethod] public void Test_With_France_High_Values_Settings() { Filler book = new Filler(); @@ -45,10 +45,10 @@ public void Test_With_France_High_Values_Settings() var b = book.Create(); - Assert.NotNull(b); + Assert.IsNotNull(b); } - [Fact] + [TestMethod] public void Test_With_English_Min_Values_Settings() { Filler book = new Filler(); @@ -58,11 +58,11 @@ public void Test_With_English_Min_Values_Settings() var b = book.Create(); b.ISBN = b.ISBN.Replace("\r\n\r\n", string.Empty); - Assert.NotNull(b); - Assert.Equal(1, b.ISBN.Split('\n').Length); + Assert.IsNotNull(b); + Assert.AreEqual(1, b.ISBN.Split('\n').Length); } - [Fact] + [TestMethod] public void Test_With_LoremIpsum_Seed_Settings() { Filler book = new Filler(); @@ -72,12 +72,12 @@ public void Test_With_LoremIpsum_Seed_Settings() var b = book.Create(); var b1 = book.Create(); - Assert.NotNull(b); - Assert.NotNull(b1); - Assert.Equal(b.ISBN, b1.ISBN); + Assert.IsNotNull(b); + Assert.IsNotNull(b1); + Assert.AreEqual(b.ISBN, b1.ISBN); } - [Fact] + [TestMethod] public void LoremIpsum_should_provide_different_data() { var alowedDelta = 2; @@ -91,7 +91,7 @@ public void LoremIpsum_should_provide_different_data() var groupedResult = resultElements.GroupBy(x => x.Description); - Assert.Equal((double)100, groupedResult.Count(), alowedDelta); + Assert.AreEqual((double)100, groupedResult.Count(), alowedDelta); } } } diff --git a/Tynamix.ObjectFiller.Test/ObjectFillerRecursiveTests.cs b/Tynamix.ObjectFiller.Test/ObjectFillerRecursiveTests.cs index 418ac14..fc02ae4 100644 --- a/Tynamix.ObjectFiller.Test/ObjectFillerRecursiveTests.cs +++ b/Tynamix.ObjectFiller.Test/ObjectFillerRecursiveTests.cs @@ -1,11 +1,11 @@ using System; using System.Collections.Generic; - using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class ObjectFillerRecursiveTests { @@ -61,68 +61,68 @@ public class ParentDictionary // ReSharper restore ClassNeverInstantiated.Local - [Fact] + [TestMethod] public void RecursiveFill_RecursiveType_ThrowsException() { var filler = new Filler(); filler.Setup().OnCircularReference().ThrowException(); - Assert.Throws(() => filler.Create()); + Assert.ThrowsException(() => filler.Create()); } - [Fact] + [TestMethod] public void RecursiveFill_WithIgnoredProperties_Succeeds() { var filler = new Filler(); filler.Setup().OnProperty(p => p.Child).IgnoreIt(); var result = filler.Create(); - Assert.NotNull(result); + Assert.IsNotNull(result); } - [Fact] + [TestMethod] public void RecursiveFill_WithFunc_Succeeds() { var filler = new Filler(); filler.Setup().OnProperty(p => p.Child).Use(() => new TestChild()); var result = filler.Create(); - Assert.NotNull(result.Child); + Assert.IsNotNull(result.Child); } - [Fact] + [TestMethod] public void RecursiveFill_RecursiveType_Parent_First_Fails() { var filler = new Filler(); filler.Setup().OnCircularReference().ThrowException(); - Assert.Throws(() => filler.Create()); + Assert.ThrowsException(() => filler.Create()); } - [Fact] + [TestMethod] public void RecursiveFill_RecursiveType_Child_First_Fails() { var filler = new Filler(); filler.Setup().OnCircularReference().ThrowException(); - Assert.Throws(() => filler.Create()); + Assert.ThrowsException(() => filler.Create()); } - [Fact] + [TestMethod] public void RecursiveFill_DeepRecursiveType_Fails() { var filler = new Filler(); filler.Setup().OnCircularReference().ThrowException(); - Assert.Throws(() => filler.Create()); + Assert.ThrowsException(() => filler.Create()); } - [Fact] + [TestMethod] public void RecursiveFill_SelfReferencing_Fails() { var filler = new Filler(); filler.Setup().OnCircularReference().ThrowException(); - Assert.Throws(() => filler.Create()); + Assert.ThrowsException(() => filler.Create()); } - [Fact] + [TestMethod] public void RecursiveFill_DuplicateProperty_Succeeds() { // reason: a filler should not complain if it encounters the same type @@ -130,53 +130,53 @@ public void RecursiveFill_DuplicateProperty_Succeeds() var filler = new Filler(); var result = filler.Create(); - Assert.NotNull(result); + Assert.IsNotNull(result); } - [Fact] + [TestMethod] public void RecursiveFill_RecursiveType_Parent_First_Succeeds() { var filler = new Filler(); var r = filler.Create(); - Assert.Null(r.Child.Parent.Child); + Assert.IsNull(r.Child.Parent.Child); } - [Fact] + [TestMethod] public void RecursiveFill_RecursiveType_Child_First_Succeeds() { var filler = new Filler(); var r = filler.Create(); - Assert.Null(r.Parent.Child.Parent); + Assert.IsNull(r.Parent.Child.Parent); } - [Fact] + [TestMethod] public void RecursiveFill_DeepRecursiveType_Succeeds() { var filler = new Filler(); var r = filler.Create(); - Assert.Null(r.SubObject.Child.Parent); + Assert.IsNull(r.SubObject.Child.Parent); } - [Fact] + [TestMethod] public void RecursiveFill_SelfReferencing_Succeeds() { var filler = new Filler(); var r = filler.Create(); - Assert.Null(r.Self.Self); + Assert.IsNull(r.Self.Self); } - [Fact] + [TestMethod] public void RecursiveFill_ParentList_Succeeds() { var filler = new Filler(); var r = filler.Create(); - Assert.Null(r.Childrens[0].Parent.Childrens); + Assert.IsNull(r.Childrens[0].Parent.Childrens); } - [Fact] + [TestMethod] public void RecursiveFill_ParentDictionary_Succeeds() { var filler = new Filler(); diff --git a/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs b/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs index c335a27..e7019d7 100644 --- a/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs +++ b/Tynamix.ObjectFiller.Test/ObjectFillerTest.cs @@ -1,16 +1,16 @@ using System; using System.Collections.Generic; using System.Linq; - using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using ObjectFiller.Test.TestPoco.Person; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class ObjectFillerTest { - [Fact] + [TestMethod] public void TestFillPerson() { Person p = new Person(); @@ -26,20 +26,20 @@ public void TestFillPerson() Person pFilled = filler.Fill(p); - Assert.True(new List() { "Maik", "Tom", "Anton" }.Contains(pFilled.LastName)); + Assert.IsTrue(new List() { "Maik", "Tom", "Anton" }.Contains(pFilled.LastName)); } - [Fact] + [TestMethod] public void CreateMultipleInstances() { Filler filler = new Filler(); IEnumerable pList = filler.Create(10); - Assert.NotNull(pList); - Assert.Equal(10, pList.Count()); + Assert.IsNotNull(pList); + Assert.AreEqual(10, pList.Count()); } } } diff --git a/Tynamix.ObjectFiller.Test/PatternGeneratorTest.cs b/Tynamix.ObjectFiller.Test/PatternGeneratorTest.cs index 059f4e0..b43c0ea 100644 --- a/Tynamix.ObjectFiller.Test/PatternGeneratorTest.cs +++ b/Tynamix.ObjectFiller.Test/PatternGeneratorTest.cs @@ -1,17 +1,18 @@ using System; using System.Reflection.Emit; -using Xunit; + using System.Text.RegularExpressions; using System.Collections.Generic; +using Microsoft.VisualStudio.TestTools.UnitTesting; using ObjectFiller.Test.TestPoco.Person; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class PatternGeneratorTest { - [Fact] + [TestMethod] public void Must_be_able_to_handle_private_setters() { var filler = new Filler(); @@ -22,24 +23,24 @@ public void Must_be_able_to_handle_private_setters() var obj = filler.Create(); - Assert.NotEqual(0, obj.WithPrivateSetter); - Assert.Equal(123, obj.WithoutSetter); + Assert.AreNotEqual(0, obj.WithPrivateSetter); + Assert.AreEqual(123, obj.WithoutSetter); - Assert.Equal(obj.NameStyle, NameStyle.FirstNameLastName); + Assert.AreEqual(obj.NameStyle, NameStyle.FirstNameLastName); } - [Fact] + [TestMethod] public void Must_be_able_to_handle_inheritance_and_sealed() { var filler = new Filler(); var obj = filler.Create(); - Assert.NotEqual(0, obj.NormalNumber); - Assert.NotEqual(0, obj.OverrideNormalNumber); - Assert.NotEqual(0, obj.SealedOverrideNormalNumber); + Assert.AreNotEqual(0, obj.NormalNumber); + Assert.AreNotEqual(0, obj.OverrideNormalNumber); + Assert.AreNotEqual(0, obj.SealedOverrideNormalNumber); } - [Fact] + [TestMethod] public void Must_be_able_to_handle_arrays() { var filler = new Filler(); @@ -47,15 +48,15 @@ public void Must_be_able_to_handle_arrays() //.For(); var obj = filler.Create(); - Assert.NotNull(obj.Ints); - Assert.NotNull(obj.Strings); - Assert.NotNull(obj.JaggedStrings); - Assert.NotNull(obj.ThreeJaggedDimensional); - Assert.NotNull(obj.ThreeJaggedPoco); + Assert.IsNotNull(obj.Ints); + Assert.IsNotNull(obj.Strings); + Assert.IsNotNull(obj.JaggedStrings); + Assert.IsNotNull(obj.ThreeJaggedDimensional); + Assert.IsNotNull(obj.ThreeJaggedPoco); } - [Fact] + [TestMethod] public void StringPatternGenerator_A() { HashSet chars = new HashSet(); @@ -64,36 +65,36 @@ public void StringPatternGenerator_A() for (int n = 0; n < 10000; n++) { var s = sut.GetValue(); - Assert.True(Regex.IsMatch(s, "^[A-Z]$")); + Assert.IsTrue(Regex.IsMatch(s, "^[A-Z]$")); chars.Add(s[0]); } - Assert.Equal(26, chars.Count); + Assert.AreEqual(26, chars.Count); } - [Fact] + [TestMethod] public void StringPatternGenerator_A_fixed_len() { var sut = new PatternGenerator("x{A:3}x"); for (int n = 0; n < 10000; n++) { var s = sut.GetValue(); - Assert.True(Regex.IsMatch(s, "^x[A-Z]{3}x$")); + Assert.IsTrue(Regex.IsMatch(s, "^x[A-Z]{3}x$")); } } - [Fact] + [TestMethod] public void StringPatternGenerator_A_random_len() { var sut = new PatternGenerator("x{A:3-6}x"); for (int n = 0; n < 10000; n++) { var s = sut.GetValue(); - Assert.True(Regex.IsMatch(s, "^x[A-Z]{3,6}x$")); + Assert.IsTrue(Regex.IsMatch(s, "^x[A-Z]{3,6}x$")); } } - [Fact] + [TestMethod] public void StringPatternGenerator_a() { HashSet chars = new HashSet(); @@ -102,15 +103,15 @@ public void StringPatternGenerator_a() for (int n = 0; n < 10000; n++) { var s = sut.GetValue(); - Assert.True(s.Length == 1); - Assert.True(Regex.IsMatch(s, "^[a-z]$")); + Assert.IsTrue(s.Length == 1); + Assert.IsTrue(Regex.IsMatch(s, "^[a-z]$")); chars.Add(s[0]); } - Assert.Equal(26, chars.Count); + Assert.AreEqual(26, chars.Count); } - [Fact] + [TestMethod] public void StringPatternGenerator_a_composite() { HashSet chars = new HashSet(); @@ -119,27 +120,27 @@ public void StringPatternGenerator_a_composite() for (int n = 0; n < 10000; n++) { var s = sut.GetValue(); - Assert.True(s.Length == 3); - Assert.True(Regex.IsMatch(s, "^a [a-z]$")); + Assert.IsTrue(s.Length == 3); + Assert.IsTrue(Regex.IsMatch(s, "^a [a-z]$")); chars.Add(s[2]); } - Assert.Equal(26, chars.Count); + Assert.AreEqual(26, chars.Count); } - [Fact] + [TestMethod] public void StringPatternGenerator_aaa() { var sut = new PatternGenerator("xcccx"); for (int n = 0; n < 10000; n++) { var s = sut.GetValue(); - Assert.True(s.Length == 5); - Assert.True(Regex.IsMatch(s, "^x[a-z]{3}x$")); + Assert.IsTrue(s.Length == 5); + Assert.IsTrue(Regex.IsMatch(s, "^x[a-z]{3}x$")); } } - [Fact] + [TestMethod] public void StringPatternGenerator_N() { HashSet chars = new HashSet(); @@ -148,15 +149,15 @@ public void StringPatternGenerator_N() for (int n = 0; n < 10000; n++) { var s = sut.GetValue(); - Assert.True(s.Length == 1); - Assert.True(Regex.IsMatch(s, "^[0-9]$")); + Assert.IsTrue(s.Length == 1); + Assert.IsTrue(Regex.IsMatch(s, "^[0-9]$")); chars.Add(s[0]); } - Assert.Equal(10, chars.Count); + Assert.AreEqual(10, chars.Count); } - [Fact] + [TestMethod] public void StringPatternGenerator_X() { HashSet chars = new HashSet(); @@ -165,81 +166,81 @@ public void StringPatternGenerator_X() for (int n = 0; n < 10000; n++) { var s = sut.GetValue(); - Assert.True(s.Length == 1); - Assert.True(Regex.IsMatch(s, "^[0-9A-F]$")); + Assert.IsTrue(s.Length == 1); + Assert.IsTrue(Regex.IsMatch(s, "^[0-9A-F]$")); chars.Add(s[0]); } - Assert.Equal(16, chars.Count); + Assert.AreEqual(16, chars.Count); } - [Fact] + [TestMethod] public void StringPatternGenerator_C_simple() { var sut = new PatternGenerator("{C}"); - Assert.Equal("1", sut.GetValue()); - Assert.Equal("2", sut.GetValue()); - Assert.Equal("3", sut.GetValue()); + Assert.AreEqual("1", sut.GetValue()); + Assert.AreEqual("2", sut.GetValue()); + Assert.AreEqual("3", sut.GetValue()); } - [Fact] + [TestMethod] public void StringPatternGenerator_C_with_StartValue() { var sut = new PatternGenerator("{C:33}"); - Assert.Equal("33", sut.GetValue()); - Assert.Equal("34", sut.GetValue()); - Assert.Equal("35", sut.GetValue()); + Assert.AreEqual("33", sut.GetValue()); + Assert.AreEqual("34", sut.GetValue()); + Assert.AreEqual("35", sut.GetValue()); } - [Fact] + [TestMethod] public void StringPatternGenerator_C_with_StartValue_with_Increment() { var sut = new PatternGenerator("{C:33,3}"); - Assert.Equal("33", sut.GetValue()); - Assert.Equal("36", sut.GetValue()); - Assert.Equal("39", sut.GetValue()); + Assert.AreEqual("33", sut.GetValue()); + Assert.AreEqual("36", sut.GetValue()); + Assert.AreEqual("39", sut.GetValue()); } - [Fact] + [TestMethod] public void StringPatternGenerator_C_combination() { var sut = new PatternGenerator("_{C}_{C:+11}_{C:110,10}_"); - Assert.Equal("_1_11_110_", sut.GetValue()); - Assert.Equal("_2_12_120_", sut.GetValue()); - Assert.Equal("_3_13_130_", sut.GetValue()); - Assert.Equal("_4_14_140_", sut.GetValue()); + Assert.AreEqual("_1_11_110_", sut.GetValue()); + Assert.AreEqual("_2_12_120_", sut.GetValue()); + Assert.AreEqual("_3_13_130_", sut.GetValue()); + Assert.AreEqual("_4_14_140_", sut.GetValue()); } - [Fact] + [TestMethod] public void StringPatternGenerator_C_startvalue_negative_value() { var sut = new PatternGenerator("{C:-3}"); - Assert.Equal("-3", sut.GetValue()); - Assert.Equal("-2", sut.GetValue()); - Assert.Equal("-1", sut.GetValue()); - Assert.Equal("0", sut.GetValue()); - Assert.Equal("1", sut.GetValue()); - Assert.Equal("2", sut.GetValue()); - Assert.Equal("3", sut.GetValue()); + Assert.AreEqual("-3", sut.GetValue()); + Assert.AreEqual("-2", sut.GetValue()); + Assert.AreEqual("-1", sut.GetValue()); + Assert.AreEqual("0", sut.GetValue()); + Assert.AreEqual("1", sut.GetValue()); + Assert.AreEqual("2", sut.GetValue()); + Assert.AreEqual("3", sut.GetValue()); } - [Fact] + [TestMethod] public void StringPatternGenerator_C__startvalue_negative__positive_increment() { var sut = new PatternGenerator("{C:-3,+2}"); - Assert.Equal("-3", sut.GetValue()); - Assert.Equal("-1", sut.GetValue()); - Assert.Equal("1", sut.GetValue()); - Assert.Equal("3", sut.GetValue()); + Assert.AreEqual("-3", sut.GetValue()); + Assert.AreEqual("-1", sut.GetValue()); + Assert.AreEqual("1", sut.GetValue()); + Assert.AreEqual("3", sut.GetValue()); } - [Fact] + [TestMethod] public void StringPatternGenerator_C__startvalue_negative__negative_increment() { var sut = new PatternGenerator("{C:-3,-2}"); - Assert.Equal("-3", sut.GetValue()); - Assert.Equal("-5", sut.GetValue()); - Assert.Equal("-7", sut.GetValue()); + Assert.AreEqual("-3", sut.GetValue()); + Assert.AreEqual("-5", sut.GetValue()); + Assert.AreEqual("-7", sut.GetValue()); } } diff --git a/Tynamix.ObjectFiller.Test/PersonFillingTest.cs b/Tynamix.ObjectFiller.Test/PersonFillingTest.cs index f543ede..4b6e8a4 100644 --- a/Tynamix.ObjectFiller.Test/PersonFillingTest.cs +++ b/Tynamix.ObjectFiller.Test/PersonFillingTest.cs @@ -1,17 +1,17 @@ using System; using System.Collections.Generic; using System.Linq; - using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using ObjectFiller.Test.TestPoco.Person; using Tynamix.ObjectFiller; using Random = Tynamix.ObjectFiller.Random; namespace ObjectFiller.Test { - + [TestClass] public class PersonFillingTest { - [Fact] + [TestMethod] public void TestFillPerson() { Filler pFiller = new Filler(); @@ -21,14 +21,14 @@ public void TestFillPerson() Person filledPerson = pFiller.Create(); - Assert.NotNull(filledPerson.Address); - Assert.NotNull(filledPerson.Addresses); - Assert.NotNull(filledPerson.StringToIAddress); - Assert.NotNull(filledPerson.SureNames); + Assert.IsNotNull(filledPerson.Address); + Assert.IsNotNull(filledPerson.Addresses); + Assert.IsNotNull(filledPerson.StringToIAddress); + Assert.IsNotNull(filledPerson.SureNames); } - [Fact] + [TestMethod] public void TestFillPersonWithEnumerable() { Filler pFiller = new Filler(); @@ -40,14 +40,14 @@ public void TestFillPersonWithEnumerable() Person filledPerson = pFiller.Create(); - Assert.NotNull(filledPerson.Address); - Assert.NotNull(filledPerson.Addresses); - Assert.NotNull(filledPerson.StringToIAddress); - Assert.NotNull(filledPerson.SureNames); + Assert.IsNotNull(filledPerson.Address); + Assert.IsNotNull(filledPerson.Addresses); + Assert.IsNotNull(filledPerson.StringToIAddress); + Assert.IsNotNull(filledPerson.SureNames); } - [Fact] + [TestMethod] public void TestNameListStringRandomizer() { Filler pFiller = new Filler(); @@ -58,12 +58,12 @@ public void TestNameListStringRandomizer() Person filledPerson = pFiller.Create(); - Assert.NotNull(filledPerson.FirstName); - Assert.NotNull(filledPerson.LastName); + Assert.IsNotNull(filledPerson.FirstName); + Assert.IsNotNull(filledPerson.LastName); } - [Fact] + [TestMethod] public void TestFirstNameAsConstantLastNameAsRealName() { Filler pFiller = new Filler(); @@ -75,13 +75,13 @@ public void TestFirstNameAsConstantLastNameAsRealName() Person filledPerson = pFiller.Create(); - Assert.NotNull(filledPerson.FirstName); - Assert.Equal("John", filledPerson.FirstName); - Assert.NotNull(filledPerson.LastName); + Assert.IsNotNull(filledPerson.FirstName); + Assert.AreEqual("John", filledPerson.FirstName); + Assert.IsNotNull(filledPerson.LastName); } - [Fact] + [TestMethod] public void GeneratePersonWithGivenSetOfNamesAndAges() { List names = new List { "Tom", "Maik", "John", "Leo" }; @@ -95,12 +95,12 @@ public void GeneratePersonWithGivenSetOfNamesAndAges() var pF = pFiller.Create(); - Assert.True(names.Contains(pF.FirstName)); - Assert.True(ages.Contains(pF.Age)); + Assert.IsTrue(names.Contains(pF.FirstName)); + Assert.IsTrue(ages.Contains(pF.Age)); } - [Fact] + [TestMethod] public void BigComplicated() { Filler pFiller = new Filler(); @@ -114,13 +114,13 @@ public void BigComplicated() var pF = pFiller.Create(); - Assert.NotNull(pF); - Assert.NotNull(pF.Address); - Assert.Null(pF.Address.Street); + Assert.IsNotNull(pF); + Assert.IsNotNull(pF.Address); + Assert.IsNull(pF.Address.Street); } - [Fact] + [TestMethod] public void FluentTest() { Filler pFiller = new Filler(); @@ -129,12 +129,12 @@ public void FluentTest() .OnType().CreateInstanceOf
(); Person p = pFiller.Create(); - Assert.NotNull(p); - Assert.Equal(18, p.Age); + Assert.IsNotNull(p); + Assert.AreEqual(18, p.Age); } - [Fact] + [TestMethod] public void TestSetupForTypeOverrideSettings() { Filler pFiller = new Filler(); @@ -144,11 +144,11 @@ public void TestSetupForTypeOverrideSettings() .SetupFor
(true); Person p = pFiller.Create(); - Assert.Equal(1, p.Age); - Assert.NotEqual(1, p.Address.HouseNumber); + Assert.AreEqual(1, p.Age); + Assert.AreNotEqual(1, p.Address.HouseNumber); } - [Fact] + [TestMethod] public void TestSetupForTypeWithoutOverrideSettings() { Filler pFiller = new Filler(); @@ -158,11 +158,11 @@ public void TestSetupForTypeWithoutOverrideSettings() .SetupFor
(); Person p = pFiller.Create(); - Assert.Equal(1, p.Age); - Assert.Equal(1, p.Address.HouseNumber); + Assert.AreEqual(1, p.Age); + Assert.AreEqual(1, p.Address.HouseNumber); } - [Fact] + [TestMethod] public void TestIgnoreAllOfType() { Filler pFiller = new Filler(); @@ -173,13 +173,13 @@ public void TestIgnoreAllOfType() Person p = pFiller.Create(); - Assert.NotNull(p); - Assert.Null(p.FirstName); - Assert.NotNull(p.Address); - Assert.Null(p.Address.City); + Assert.IsNotNull(p); + Assert.IsNull(p.FirstName); + Assert.IsNotNull(p.Address); + Assert.IsNull(p.Address.City); } - [Fact] + [TestMethod] public void TestIgnoreAllOfComplexType() { Filler pFiller = new Filler(); @@ -190,11 +190,11 @@ public void TestIgnoreAllOfComplexType() Person p = pFiller.Create(); - Assert.NotNull(p); - Assert.Null(p.Address); + Assert.IsNotNull(p); + Assert.IsNull(p.Address); } - [Fact] + [TestMethod] public void TestIgnoreAllOfTypeDictionary() { Filler pFiller = new Filler(); @@ -206,12 +206,12 @@ public void TestIgnoreAllOfTypeDictionary() Person p = pFiller.Create(); - Assert.NotNull(p); - Assert.Null(p.Address); - Assert.Null(p.StringToIAddress); + Assert.IsNotNull(p); + Assert.IsNull(p.Address); + Assert.IsNull(p.StringToIAddress); } - [Fact] + [TestMethod] public void TestPropertyOrderDoNameLast() { Filler filler = new Filler(); @@ -220,11 +220,11 @@ public void TestPropertyOrderDoNameLast() var p = filler.Create(); - Assert.NotNull(p); - Assert.Equal(3, p.NameCount); + Assert.IsNotNull(p); + Assert.AreEqual(3, p.NameCount); } - [Fact] + [TestMethod] public void TestPropertyOrderDoNameFirst() { Filler filler = new Filler(); @@ -233,8 +233,8 @@ public void TestPropertyOrderDoNameFirst() var p = filler.Create(); - Assert.NotNull(p); - Assert.Equal(1, p.NameCount); + Assert.IsNotNull(p); + Assert.AreEqual(1, p.NameCount); } } diff --git a/Tynamix.ObjectFiller.Test/RandomAccessTest.cs b/Tynamix.ObjectFiller.Test/RandomAccessTest.cs index daef080..03c58f7 100644 --- a/Tynamix.ObjectFiller.Test/RandomAccessTest.cs +++ b/Tynamix.ObjectFiller.Test/RandomAccessTest.cs @@ -1,16 +1,18 @@ -namespace ObjectFiller.Test +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace ObjectFiller.Test { using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; - using Xunit; + using Tynamix.ObjectFiller; - + [TestClass] public class RandomAccessTest { - [Fact] + [TestMethod] public void GetRandomIntOnDifferentThreadsGetsDifferentResults() { var numberToGenerate = 1000; @@ -40,7 +42,7 @@ public void GetRandomIntOnDifferentThreadsGetsDifferentResults() var results = Task.WhenAll(task1, task2).Result; var firstResults = results[0].Sum(); var secondResults = results[1].Sum(); - Assert.NotEqual(firstResults, secondResults); + Assert.AreNotEqual(firstResults, secondResults); } } } \ No newline at end of file diff --git a/Tynamix.ObjectFiller.Test/RandomizerTest.cs b/Tynamix.ObjectFiller.Test/RandomizerTest.cs index 7cd23d5..109aff7 100644 --- a/Tynamix.ObjectFiller.Test/RandomizerTest.cs +++ b/Tynamix.ObjectFiller.Test/RandomizerTest.cs @@ -1,39 +1,41 @@ -namespace ObjectFiller.Test +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace ObjectFiller.Test { using System; using System.Collections.Generic; using System.Linq; - using Xunit; + using ObjectFiller.Test.TestPoco.Library; using ObjectFiller.Test.TestPoco.Person; using Tynamix.ObjectFiller; - + [TestClass] public class RandomizerTest { - [Fact] + [TestMethod] public void GetRandomInt() { var number = Randomizer.Create(new IntRange(1, 2)); - Assert.True(number == 1 || number == 2); + Assert.IsTrue(number == 1 || number == 2); } - [Fact] + [TestMethod] public void FillAllAddressProperties() { var a = Randomizer
.Create(); - Assert.NotNull(a.City); - Assert.NotNull(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); + Assert.IsNotNull(a.City); + Assert.IsNotNull(a.Country); + Assert.AreNotEqual(0, a.HouseNumber); + Assert.IsNotNull(a.PostalCode); + Assert.IsNotNull(a.Street); } - [Fact] + [TestMethod] public void TryingToCreateAnObjectWithAnInterfaceShallFailAndHaveAnInnerexception() { try @@ -42,47 +44,47 @@ public void TryingToCreateAnObjectWithAnInterfaceShallFailAndHaveAnInnerexceptio } catch (InvalidOperationException ex) { - Assert.NotNull(ex.InnerException); + Assert.IsNotNull(ex.InnerException); return; } // Should not reach this! - Assert.False(true); + Assert.IsFalse(true); } - [Fact] + [TestMethod] public void RandomizerCreatesAListOfRandomItemsIfNeeded() { int amount = 5; IEnumerable result = Randomizer.Create(amount); - Assert.Equal(amount, result.Count()); + Assert.AreEqual(amount, result.Count()); } - [Fact] + [TestMethod] public void RandomizerCreatesAListOfRandomItemsWithAPlugin() { int amount = 5; IEnumerable result = Randomizer.Create(new IntRange(1,1), amount); - Assert.Equal(amount, result.Count()); - Assert.True(result.Count(x => x == 1) == amount); + Assert.AreEqual(amount, result.Count()); + Assert.IsTrue(result.Count(x => x == 1) == amount); } - [Fact] + [TestMethod] public void RandomizerCreatesAListOfItemBasedOnAFactory() { int amount = 5; IEnumerable result = Randomizer.Create(amount, () => 1); - Assert.Equal(amount, result.Count()); - Assert.True(result.Count(x => x == 1) == amount); + Assert.AreEqual(amount, result.Count()); + Assert.IsTrue(result.Count(x => x == 1) == amount); } - [Fact] + [TestMethod] public void RandomizerCreatesAListOfItemBasedOnASetup() { int amount = 5; @@ -91,8 +93,8 @@ public void RandomizerCreatesAListOfItemBasedOnASetup() IEnumerable
result = Randomizer
.Create(setup, amount); - Assert.Equal(amount, result.Count()); - Assert.True(result.Count(x => x.HouseNumber == 1) == amount); + Assert.AreEqual(amount, result.Count()); + Assert.IsTrue(result.Count(x => x.HouseNumber == 1) == amount); } } } \ No newline at end of file diff --git a/Tynamix.ObjectFiller.Test/RangePluginTest.cs b/Tynamix.ObjectFiller.Test/RangePluginTest.cs index ae1d69d..eab56f9 100644 --- a/Tynamix.ObjectFiller.Test/RangePluginTest.cs +++ b/Tynamix.ObjectFiller.Test/RangePluginTest.cs @@ -1,14 +1,14 @@ using System.Linq; - using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using ObjectFiller.Test.TestPoco; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class RangePluginTest { - [Fact] + [TestMethod] public void TestIntRangeWithMaxValue() { int max = 100; @@ -17,13 +17,13 @@ public void TestIntRangeWithMaxValue() filler.Setup().OnType().Use(new IntRange(max)); var sl = filler.Create(); - Assert.NotNull(sl); - Assert.NotNull(sl.ChildList); - Assert.True(sl.ChildList.All(x => x < 100)); - Assert.False(sl.ChildList.All(x => x == sl.ChildList[0])); + Assert.IsNotNull(sl); + Assert.IsNotNull(sl.ChildList); + Assert.IsTrue(sl.ChildList.All(x => x < 100)); + Assert.IsFalse(sl.ChildList.All(x => x == sl.ChildList[0])); } - [Fact] + [TestMethod] public void TestIntRangeWithMinMaxValue() { int max = 100; @@ -33,12 +33,12 @@ public void TestIntRangeWithMinMaxValue() filler.Setup().OnType().Use(new IntRange(min, max)); var sl = filler.Create(); - Assert.NotNull(sl); - Assert.NotNull(sl.ChildList); - Assert.True(sl.ChildList.All(x => x >= min && x <= max)); + Assert.IsNotNull(sl); + Assert.IsNotNull(sl.ChildList); + Assert.IsTrue(sl.ChildList.All(x => x >= min && x <= max)); } - [Fact] + [TestMethod] public void TestFloateRangeWithMinMaxValue() { int max = 100; @@ -48,9 +48,9 @@ public void TestFloateRangeWithMinMaxValue() filler.Setup().OnType().Use(new FloatRange(min, max)); var sl = filler.Create(); - Assert.NotNull(sl); - Assert.NotNull(sl.ChildList); - Assert.True(sl.ChildList.All(x => x >= min && x <= max)); + Assert.IsNotNull(sl); + Assert.IsNotNull(sl.ChildList); + Assert.IsTrue(sl.ChildList.All(x => x >= min && x <= max)); } } } diff --git a/Tynamix.ObjectFiller.Test/RealNamePluginTest.cs b/Tynamix.ObjectFiller.Test/RealNamePluginTest.cs index 230e50f..0fff6d8 100644 --- a/Tynamix.ObjectFiller.Test/RealNamePluginTest.cs +++ b/Tynamix.ObjectFiller.Test/RealNamePluginTest.cs @@ -1,12 +1,13 @@ - using Xunit; + +using Microsoft.VisualStudio.TestTools.UnitTesting; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class RealNamePluginTest { - [Fact] + [TestMethod] public void TestRealNameFirstNameOnly() { Filler filler = new Filler(); @@ -15,12 +16,12 @@ public void TestRealNameFirstNameOnly() LibraryFillingTest.Person p = filler.Create(); - Assert.NotNull(p); - Assert.NotNull(p.Name); - Assert.False(p.Name.Contains(" ")); + Assert.IsNotNull(p); + Assert.IsNotNull(p.Name); + Assert.IsFalse(p.Name.Contains(" ")); } - [Fact] + [TestMethod] public void TestRealNameLastNameOnly() { Filler filler = new Filler(); @@ -29,12 +30,12 @@ public void TestRealNameLastNameOnly() LibraryFillingTest.Person p = filler.Create(); - Assert.NotNull(p); - Assert.NotNull(p.Name); - Assert.False(p.Name.Contains(" ")); + Assert.IsNotNull(p); + Assert.IsNotNull(p.Name); + Assert.IsFalse(p.Name.Contains(" ")); } - [Fact] + [TestMethod] public void TestRealNameFirstNameLastName() { Filler filler = new Filler(); @@ -43,13 +44,13 @@ public void TestRealNameFirstNameLastName() LibraryFillingTest.Person p = filler.Create(); - Assert.NotNull(p); - Assert.NotNull(p.Name); - Assert.True(p.Name.Contains(" ")); - Assert.Equal(2, p.Name.Split(' ').Length); + Assert.IsNotNull(p); + Assert.IsNotNull(p.Name); + Assert.IsTrue(p.Name.Contains(" ")); + Assert.AreEqual(2, p.Name.Split(' ').Length); } - [Fact] + [TestMethod] public void TestRealNameLastNameFirstName() { Filler filler = new Filler(); @@ -58,10 +59,10 @@ public void TestRealNameLastNameFirstName() LibraryFillingTest.Person p = filler.Create(); - Assert.NotNull(p); - Assert.NotNull(p.Name); - Assert.True(p.Name.Contains(" ")); - Assert.Equal(2, p.Name.Split(' ').Length); + Assert.IsNotNull(p); + Assert.IsNotNull(p.Name); + Assert.IsTrue(p.Name.Contains(" ")); + Assert.AreEqual(2, p.Name.Split(' ').Length); } } } \ No newline at end of file diff --git a/Tynamix.ObjectFiller.Test/SaveFillerSetupTest.cs b/Tynamix.ObjectFiller.Test/SaveFillerSetupTest.cs index c719e30..7f7e592 100644 --- a/Tynamix.ObjectFiller.Test/SaveFillerSetupTest.cs +++ b/Tynamix.ObjectFiller.Test/SaveFillerSetupTest.cs @@ -1,11 +1,11 @@ using System; - using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using ObjectFiller.Test.TestPoco.Person; using Tynamix.ObjectFiller; namespace ObjectFiller.Test { - + [TestClass] public class SaveFillerSetupTest { @@ -24,7 +24,7 @@ public FillerSetup GetFillerSetup() } - [Fact] + [TestMethod] public void UseSavedFillerDefaultSetup() { Filler filler = new Filler(); @@ -32,12 +32,12 @@ public void UseSavedFillerDefaultSetup() Person p = filler.Create(); - Assert.True(p.Age < 35 && p.Age >= 18); - Assert.True(p.Address.HouseNumber < 100 && p.Age >= 1); + Assert.IsTrue(p.Age < 35 && p.Age >= 18); + Assert.IsTrue(p.Address.HouseNumber < 100 && p.Age >= 1); } - [Fact] + [TestMethod] public void UseSavedFillerSetupWithExtensions() { var dateNow = DateTime.Now; @@ -47,13 +47,13 @@ public void UseSavedFillerSetupWithExtensions() Person p = filler.Create(); - Assert.True(p.Age < 35 && p.Age >= 18); - Assert.True(p.Address.HouseNumber < 100 && p.Age >= 1); - Assert.Equal(p.Birthdate, dateNow); + Assert.IsTrue(p.Age < 35 && p.Age >= 18); + Assert.IsTrue(p.Address.HouseNumber < 100 && p.Age >= 1); + Assert.AreEqual(p.Birthdate, dateNow); } - [Fact] + [TestMethod] public void UseSavedFillerSetupWithOverrides() { Filler filler = new Filler(); @@ -64,8 +64,8 @@ public void UseSavedFillerSetupWithOverrides() Person p = filler.Create(); - Assert.Equal(p.Age, 1000); - Assert.Equal(p.Address.HouseNumber, 9999); + Assert.AreEqual(p.Age, 1000); + Assert.AreEqual(p.Address.HouseNumber, 9999); } diff --git a/Tynamix.ObjectFiller.Test/SequenceGeneratorTest.cs b/Tynamix.ObjectFiller.Test/SequenceGeneratorTest.cs index e3bb872..4f7f928 100644 --- a/Tynamix.ObjectFiller.Test/SequenceGeneratorTest.cs +++ b/Tynamix.ObjectFiller.Test/SequenceGeneratorTest.cs @@ -1,330 +1,331 @@ using System; -using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; using Tynamix.ObjectFiller; // ReSharper disable RedundantCast namespace ObjectFiller.Test { + [TestClass] public class SequenceGeneratorTest { - [Fact] + [TestMethod] public void SequenceGeneratorSByte__Should_work() { var generator = new SequenceGeneratorSByte(); - Assert.Equal((SByte)0, generator.GetValue()); - Assert.Equal((SByte)1, generator.GetValue()); - Assert.Equal((SByte)2, generator.GetValue()); + Assert.AreEqual((SByte)0, generator.GetValue()); + Assert.AreEqual((SByte)1, generator.GetValue()); + Assert.AreEqual((SByte)2, generator.GetValue()); generator = new SequenceGeneratorSByte { From = 3 }; - Assert.Equal((SByte)3, generator.GetValue()); - Assert.Equal((SByte)4, generator.GetValue()); - Assert.Equal((SByte)5, generator.GetValue()); + Assert.AreEqual((SByte)3, generator.GetValue()); + Assert.AreEqual((SByte)4, generator.GetValue()); + Assert.AreEqual((SByte)5, generator.GetValue()); generator = new SequenceGeneratorSByte { From = 3, Step = 3 }; - Assert.Equal((SByte)3, generator.GetValue()); - Assert.Equal((SByte)6, generator.GetValue()); - Assert.Equal((SByte)9, generator.GetValue()); + Assert.AreEqual((SByte)3, generator.GetValue()); + Assert.AreEqual((SByte)6, generator.GetValue()); + Assert.AreEqual((SByte)9, generator.GetValue()); generator = new SequenceGeneratorSByte { From = 3, Step = -3 }; - Assert.Equal((SByte)3, generator.GetValue()); - Assert.Equal((SByte)0, generator.GetValue()); - Assert.Equal((SByte)(-3), generator.GetValue()); + Assert.AreEqual((SByte)3, generator.GetValue()); + Assert.AreEqual((SByte)0, generator.GetValue()); + Assert.AreEqual((SByte)(-3), generator.GetValue()); generator = new SequenceGeneratorSByte { From = SByte.MaxValue - 1 }; - Assert.Equal((SByte)(SByte.MaxValue - 1), generator.GetValue()); - Assert.Equal((SByte)(SByte.MaxValue - 0), generator.GetValue()); - Assert.Equal((SByte)(SByte.MinValue + 0), generator.GetValue()); - Assert.Equal((SByte)(SByte.MinValue + 1), generator.GetValue()); + Assert.AreEqual((SByte)(SByte.MaxValue - 1), generator.GetValue()); + Assert.AreEqual((SByte)(SByte.MaxValue - 0), generator.GetValue()); + Assert.AreEqual((SByte)(SByte.MinValue + 0), generator.GetValue()); + Assert.AreEqual((SByte)(SByte.MinValue + 1), generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorInt16__Should_work() { var generator = new SequenceGeneratorInt16(); - Assert.Equal((Int16)0, generator.GetValue()); - Assert.Equal((Int16)1, generator.GetValue()); - Assert.Equal((Int16)2, generator.GetValue()); + Assert.AreEqual((Int16)0, generator.GetValue()); + Assert.AreEqual((Int16)1, generator.GetValue()); + Assert.AreEqual((Int16)2, generator.GetValue()); generator = new SequenceGeneratorInt16 { From = 3 }; - Assert.Equal((Int16)3, generator.GetValue()); - Assert.Equal((Int16)4, generator.GetValue()); - Assert.Equal((Int16)5, generator.GetValue()); + Assert.AreEqual((Int16)3, generator.GetValue()); + Assert.AreEqual((Int16)4, generator.GetValue()); + Assert.AreEqual((Int16)5, generator.GetValue()); generator = new SequenceGeneratorInt16 { From = 3, Step = 3 }; - Assert.Equal((Int16)3, generator.GetValue()); - Assert.Equal((Int16)6, generator.GetValue()); - Assert.Equal((Int16)9, generator.GetValue()); + Assert.AreEqual((Int16)3, generator.GetValue()); + Assert.AreEqual((Int16)6, generator.GetValue()); + Assert.AreEqual((Int16)9, generator.GetValue()); generator = new SequenceGeneratorInt16 { From = 3, Step = -3 }; - Assert.Equal((Int16)3, generator.GetValue()); - Assert.Equal((Int16)0, generator.GetValue()); - Assert.Equal((Int16)(-3), generator.GetValue()); + Assert.AreEqual((Int16)3, generator.GetValue()); + Assert.AreEqual((Int16)0, generator.GetValue()); + Assert.AreEqual((Int16)(-3), generator.GetValue()); generator = new SequenceGeneratorInt16 { From = Int16.MaxValue - 1 }; - Assert.Equal((Int16)(Int16.MaxValue - 1), generator.GetValue()); - Assert.Equal((Int16)(Int16.MaxValue - 0), generator.GetValue()); - Assert.Equal((Int16)(Int16.MinValue + 0), generator.GetValue()); - Assert.Equal((Int16)(Int16.MinValue + 1), generator.GetValue()); + Assert.AreEqual((Int16)(Int16.MaxValue - 1), generator.GetValue()); + Assert.AreEqual((Int16)(Int16.MaxValue - 0), generator.GetValue()); + Assert.AreEqual((Int16)(Int16.MinValue + 0), generator.GetValue()); + Assert.AreEqual((Int16)(Int16.MinValue + 1), generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorInt32__Should_work() { var generator = new SequenceGeneratorInt32(); - Assert.Equal((Int32)0, generator.GetValue()); - Assert.Equal((Int32)1, generator.GetValue()); - Assert.Equal((Int32)2, generator.GetValue()); + Assert.AreEqual((Int32)0, generator.GetValue()); + Assert.AreEqual((Int32)1, generator.GetValue()); + Assert.AreEqual((Int32)2, generator.GetValue()); generator = new SequenceGeneratorInt32 { From = 3 }; - Assert.Equal((Int32)3, generator.GetValue()); - Assert.Equal((Int32)4, generator.GetValue()); - Assert.Equal((Int32)5, generator.GetValue()); + Assert.AreEqual((Int32)3, generator.GetValue()); + Assert.AreEqual((Int32)4, generator.GetValue()); + Assert.AreEqual((Int32)5, generator.GetValue()); generator = new SequenceGeneratorInt32 { From = 3, Step = 3 }; - Assert.Equal((Int32)3, generator.GetValue()); - Assert.Equal((Int32)6, generator.GetValue()); - Assert.Equal((Int32)9, generator.GetValue()); + Assert.AreEqual((Int32)3, generator.GetValue()); + Assert.AreEqual((Int32)6, generator.GetValue()); + Assert.AreEqual((Int32)9, generator.GetValue()); generator = new SequenceGeneratorInt32 { From = 3, Step = -3 }; - Assert.Equal((Int32)3, generator.GetValue()); - Assert.Equal((Int32)0, generator.GetValue()); - Assert.Equal((Int32)(-3), generator.GetValue()); + Assert.AreEqual((Int32)3, generator.GetValue()); + Assert.AreEqual((Int32)0, generator.GetValue()); + Assert.AreEqual((Int32)(-3), generator.GetValue()); generator = new SequenceGeneratorInt32 { From = Int32.MaxValue - 1 }; - Assert.Equal((Int32)(Int32.MaxValue - 1), generator.GetValue()); - Assert.Equal((Int32)(Int32.MaxValue - 0), generator.GetValue()); - Assert.Equal((Int32)(Int32.MinValue + 0), generator.GetValue()); - Assert.Equal((Int32)(Int32.MinValue + 1), generator.GetValue()); + Assert.AreEqual((Int32)(Int32.MaxValue - 1), generator.GetValue()); + Assert.AreEqual((Int32)(Int32.MaxValue - 0), generator.GetValue()); + Assert.AreEqual((Int32)(Int32.MinValue + 0), generator.GetValue()); + Assert.AreEqual((Int32)(Int32.MinValue + 1), generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorInt64__Should_work() { var generator = new SequenceGeneratorInt64(); - Assert.Equal((Int64)0, generator.GetValue()); - Assert.Equal((Int64)1, generator.GetValue()); - Assert.Equal((Int64)2, generator.GetValue()); + Assert.AreEqual((Int64)0, generator.GetValue()); + Assert.AreEqual((Int64)1, generator.GetValue()); + Assert.AreEqual((Int64)2, generator.GetValue()); generator = new SequenceGeneratorInt64 { From = 3 }; - Assert.Equal((Int64)3, generator.GetValue()); - Assert.Equal((Int64)4, generator.GetValue()); - Assert.Equal((Int64)5, generator.GetValue()); + Assert.AreEqual((Int64)3, generator.GetValue()); + Assert.AreEqual((Int64)4, generator.GetValue()); + Assert.AreEqual((Int64)5, generator.GetValue()); generator = new SequenceGeneratorInt64 { From = 3, Step = 3 }; - Assert.Equal((Int64)3, generator.GetValue()); - Assert.Equal((Int64)6, generator.GetValue()); - Assert.Equal((Int64)9, generator.GetValue()); + Assert.AreEqual((Int64)3, generator.GetValue()); + Assert.AreEqual((Int64)6, generator.GetValue()); + Assert.AreEqual((Int64)9, generator.GetValue()); generator = new SequenceGeneratorInt64 { From = 3, Step = -3 }; - Assert.Equal((Int64)3, generator.GetValue()); - Assert.Equal((Int64)0, generator.GetValue()); - Assert.Equal((Int64)(-3), generator.GetValue()); + Assert.AreEqual((Int64)3, generator.GetValue()); + Assert.AreEqual((Int64)0, generator.GetValue()); + Assert.AreEqual((Int64)(-3), generator.GetValue()); generator = new SequenceGeneratorInt64 { From = Int64.MaxValue - 1 }; - Assert.Equal((Int64)(Int64.MaxValue - 1), generator.GetValue()); - Assert.Equal((Int64)(Int64.MaxValue - 0), generator.GetValue()); - Assert.Equal((Int64)(Int64.MinValue + 0), generator.GetValue()); - Assert.Equal((Int64)(Int64.MinValue + 1), generator.GetValue()); + Assert.AreEqual((Int64)(Int64.MaxValue - 1), generator.GetValue()); + Assert.AreEqual((Int64)(Int64.MaxValue - 0), generator.GetValue()); + Assert.AreEqual((Int64)(Int64.MinValue + 0), generator.GetValue()); + Assert.AreEqual((Int64)(Int64.MinValue + 1), generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorUInt16__Should_work() { var generator = new SequenceGeneratorUInt16(); - Assert.Equal((UInt16)0, generator.GetValue()); - Assert.Equal((UInt16)1, generator.GetValue()); - Assert.Equal((UInt16)2, generator.GetValue()); + Assert.AreEqual((UInt16)0, generator.GetValue()); + Assert.AreEqual((UInt16)1, generator.GetValue()); + Assert.AreEqual((UInt16)2, generator.GetValue()); generator = new SequenceGeneratorUInt16 { From = 3 }; - Assert.Equal((UInt16)3, generator.GetValue()); - Assert.Equal((UInt16)4, generator.GetValue()); - Assert.Equal((UInt16)5, generator.GetValue()); + Assert.AreEqual((UInt16)3, generator.GetValue()); + Assert.AreEqual((UInt16)4, generator.GetValue()); + Assert.AreEqual((UInt16)5, generator.GetValue()); generator = new SequenceGeneratorUInt16 { From = 3, Step = 3 }; - Assert.Equal((UInt16)3, generator.GetValue()); - Assert.Equal((UInt16)6, generator.GetValue()); - Assert.Equal((UInt16)9, generator.GetValue()); + Assert.AreEqual((UInt16)3, generator.GetValue()); + Assert.AreEqual((UInt16)6, generator.GetValue()); + Assert.AreEqual((UInt16)9, generator.GetValue()); generator = new SequenceGeneratorUInt16 { From = UInt16.MaxValue - 1 }; - Assert.Equal((UInt16)(UInt16.MaxValue - 1), generator.GetValue()); - Assert.Equal((UInt16)(UInt16.MaxValue - 0), generator.GetValue()); - Assert.Equal((UInt16)(UInt16.MinValue + 0), generator.GetValue()); - Assert.Equal((UInt16)(UInt16.MinValue + 1), generator.GetValue()); + Assert.AreEqual((UInt16)(UInt16.MaxValue - 1), generator.GetValue()); + Assert.AreEqual((UInt16)(UInt16.MaxValue - 0), generator.GetValue()); + Assert.AreEqual((UInt16)(UInt16.MinValue + 0), generator.GetValue()); + Assert.AreEqual((UInt16)(UInt16.MinValue + 1), generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorByte__Should_work() { var generator = new SequenceGeneratorByte(); - Assert.Equal((Byte)0, generator.GetValue()); - Assert.Equal((Byte)1, generator.GetValue()); - Assert.Equal((Byte)2, generator.GetValue()); + Assert.AreEqual((Byte)0, generator.GetValue()); + Assert.AreEqual((Byte)1, generator.GetValue()); + Assert.AreEqual((Byte)2, generator.GetValue()); generator = new SequenceGeneratorByte { From = 3 }; - Assert.Equal((Byte)3, generator.GetValue()); - Assert.Equal((Byte)4, generator.GetValue()); - Assert.Equal((Byte)5, generator.GetValue()); + Assert.AreEqual((Byte)3, generator.GetValue()); + Assert.AreEqual((Byte)4, generator.GetValue()); + Assert.AreEqual((Byte)5, generator.GetValue()); generator = new SequenceGeneratorByte { From = 3, Step = 3 }; - Assert.Equal((Byte)3, generator.GetValue()); - Assert.Equal((Byte)6, generator.GetValue()); - Assert.Equal((Byte)9, generator.GetValue()); + Assert.AreEqual((Byte)3, generator.GetValue()); + Assert.AreEqual((Byte)6, generator.GetValue()); + Assert.AreEqual((Byte)9, generator.GetValue()); generator = new SequenceGeneratorByte { From = Byte.MaxValue - 1 }; - Assert.Equal((Byte)(Byte.MaxValue - 1), generator.GetValue()); - Assert.Equal((Byte)(Byte.MaxValue - 0), generator.GetValue()); - Assert.Equal((Byte)(Byte.MinValue + 0), generator.GetValue()); - Assert.Equal((Byte)(Byte.MinValue + 1), generator.GetValue()); + Assert.AreEqual((Byte)(Byte.MaxValue - 1), generator.GetValue()); + Assert.AreEqual((Byte)(Byte.MaxValue - 0), generator.GetValue()); + Assert.AreEqual((Byte)(Byte.MinValue + 0), generator.GetValue()); + Assert.AreEqual((Byte)(Byte.MinValue + 1), generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorUInt32__Should_work() { var generator = new SequenceGeneratorUInt32(); - Assert.Equal((UInt32)0, generator.GetValue()); - Assert.Equal((UInt32)1, generator.GetValue()); - Assert.Equal((UInt32)2, generator.GetValue()); + Assert.AreEqual((UInt32)0, generator.GetValue()); + Assert.AreEqual((UInt32)1, generator.GetValue()); + Assert.AreEqual((UInt32)2, generator.GetValue()); generator = new SequenceGeneratorUInt32 { From = 3 }; - Assert.Equal((UInt32)3, generator.GetValue()); - Assert.Equal((UInt32)4, generator.GetValue()); - Assert.Equal((UInt32)5, generator.GetValue()); + Assert.AreEqual((UInt32)3, generator.GetValue()); + Assert.AreEqual((UInt32)4, generator.GetValue()); + Assert.AreEqual((UInt32)5, generator.GetValue()); generator = new SequenceGeneratorUInt32 { From = 3, Step = 3 }; - Assert.Equal((UInt32)3, generator.GetValue()); - Assert.Equal((UInt32)6, generator.GetValue()); - Assert.Equal((UInt32)9, generator.GetValue()); + Assert.AreEqual((UInt32)3, generator.GetValue()); + Assert.AreEqual((UInt32)6, generator.GetValue()); + Assert.AreEqual((UInt32)9, generator.GetValue()); generator = new SequenceGeneratorUInt32 { From = UInt32.MaxValue - 1 }; - Assert.Equal((UInt32)(UInt32.MaxValue - 1), generator.GetValue()); - Assert.Equal((UInt32)(UInt32.MaxValue - 0), generator.GetValue()); - Assert.Equal((UInt32)(UInt32.MinValue + 0), generator.GetValue()); - Assert.Equal((UInt32)(UInt32.MinValue + 1), generator.GetValue()); + Assert.AreEqual((UInt32)(UInt32.MaxValue - 1), generator.GetValue()); + Assert.AreEqual((UInt32)(UInt32.MaxValue - 0), generator.GetValue()); + Assert.AreEqual((UInt32)(UInt32.MinValue + 0), generator.GetValue()); + Assert.AreEqual((UInt32)(UInt32.MinValue + 1), generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorUInt64__Should_work() { var generator = new SequenceGeneratorUInt64(); - Assert.Equal((UInt64)0, generator.GetValue()); - Assert.Equal((UInt64)1, generator.GetValue()); - Assert.Equal((UInt64)2, generator.GetValue()); + Assert.AreEqual((UInt64)0, generator.GetValue()); + Assert.AreEqual((UInt64)1, generator.GetValue()); + Assert.AreEqual((UInt64)2, generator.GetValue()); generator = new SequenceGeneratorUInt64 { From = 3 }; - Assert.Equal((UInt64)3, generator.GetValue()); - Assert.Equal((UInt64)4, generator.GetValue()); - Assert.Equal((UInt64)5, generator.GetValue()); + Assert.AreEqual((UInt64)3, generator.GetValue()); + Assert.AreEqual((UInt64)4, generator.GetValue()); + Assert.AreEqual((UInt64)5, generator.GetValue()); generator = new SequenceGeneratorUInt64 { From = 3, Step = 3 }; - Assert.Equal((UInt64)3, generator.GetValue()); - Assert.Equal((UInt64)6, generator.GetValue()); - Assert.Equal((UInt64)9, generator.GetValue()); + Assert.AreEqual((UInt64)3, generator.GetValue()); + Assert.AreEqual((UInt64)6, generator.GetValue()); + Assert.AreEqual((UInt64)9, generator.GetValue()); generator = new SequenceGeneratorUInt64 { From = UInt64.MaxValue - 1 }; - Assert.Equal((UInt64)(UInt64.MaxValue - 1), generator.GetValue()); - Assert.Equal((UInt64)(UInt64.MaxValue - 0), generator.GetValue()); - Assert.Equal((UInt64)(UInt64.MinValue + 0), generator.GetValue()); - Assert.Equal((UInt64)(UInt64.MinValue + 1), generator.GetValue()); + Assert.AreEqual((UInt64)(UInt64.MaxValue - 1), generator.GetValue()); + Assert.AreEqual((UInt64)(UInt64.MaxValue - 0), generator.GetValue()); + Assert.AreEqual((UInt64)(UInt64.MinValue + 0), generator.GetValue()); + Assert.AreEqual((UInt64)(UInt64.MinValue + 1), generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorChar__Should_work() { var generator = new SequenceGeneratorChar(); - Assert.Equal((Char)0, generator.GetValue()); - Assert.Equal((Char)1, generator.GetValue()); - Assert.Equal((Char)2, generator.GetValue()); + Assert.AreEqual((Char)0, generator.GetValue()); + Assert.AreEqual((Char)1, generator.GetValue()); + Assert.AreEqual((Char)2, generator.GetValue()); generator = new SequenceGeneratorChar { From = 'A' }; - Assert.Equal((Char)'A', generator.GetValue()); - Assert.Equal((Char)'B', generator.GetValue()); - Assert.Equal((Char)'C', generator.GetValue()); + Assert.AreEqual((Char)'A', generator.GetValue()); + Assert.AreEqual((Char)'B', generator.GetValue()); + Assert.AreEqual((Char)'C', generator.GetValue()); generator = new SequenceGeneratorChar { From = 'A', Step = (Char)3 }; - Assert.Equal((Char)'A', generator.GetValue()); - Assert.Equal((Char)'D', generator.GetValue()); - Assert.Equal((Char)'G', generator.GetValue()); + Assert.AreEqual((Char)'A', generator.GetValue()); + Assert.AreEqual((Char)'D', generator.GetValue()); + Assert.AreEqual((Char)'G', generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorSingle__Should_work() { var generator = new SequenceGeneratorSingle(); - Assert.Equal((Single)0, generator.GetValue()); - Assert.Equal((Single)1, generator.GetValue()); - Assert.Equal((Single)2, generator.GetValue()); + Assert.AreEqual((Single)0, generator.GetValue()); + Assert.AreEqual((Single)1, generator.GetValue()); + Assert.AreEqual((Single)2, generator.GetValue()); generator = new SequenceGeneratorSingle { From = 3 }; - Assert.Equal((Single)3, generator.GetValue()); - Assert.Equal((Single)4, generator.GetValue()); - Assert.Equal((Single)5, generator.GetValue()); + Assert.AreEqual((Single)3, generator.GetValue()); + Assert.AreEqual((Single)4, generator.GetValue()); + Assert.AreEqual((Single)5, generator.GetValue()); generator = new SequenceGeneratorSingle { From = 3, Step = 3 }; - Assert.Equal((Single)3, generator.GetValue()); - Assert.Equal((Single)6, generator.GetValue()); - Assert.Equal((Single)9, generator.GetValue()); + Assert.AreEqual((Single)3, generator.GetValue()); + Assert.AreEqual((Single)6, generator.GetValue()); + Assert.AreEqual((Single)9, generator.GetValue()); generator = new SequenceGeneratorSingle { From = 3, Step = -3 }; - Assert.Equal((Single)3, generator.GetValue()); - Assert.Equal((Single)0, generator.GetValue()); - Assert.Equal((Single)(-3), generator.GetValue()); + Assert.AreEqual((Single)3, generator.GetValue()); + Assert.AreEqual((Single)0, generator.GetValue()); + Assert.AreEqual((Single)(-3), generator.GetValue()); generator = new SequenceGeneratorSingle { From = Single.MaxValue - 1 }; - Assert.Equal((Single)(Single.MaxValue - 1), generator.GetValue()); - Assert.Equal((Single)(Single.MaxValue - 0), generator.GetValue()); + Assert.AreEqual((Single)(Single.MaxValue - 1), generator.GetValue()); + Assert.AreEqual((Single)(Single.MaxValue - 0), generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorDouble__Should_work() { var generator = new SequenceGeneratorDouble(); - Assert.Equal((Double)0, generator.GetValue()); - Assert.Equal((Double)1, generator.GetValue()); - Assert.Equal((Double)2, generator.GetValue()); + Assert.AreEqual((Double)0, generator.GetValue()); + Assert.AreEqual((Double)1, generator.GetValue()); + Assert.AreEqual((Double)2, generator.GetValue()); generator = new SequenceGeneratorDouble { From = 3 }; - Assert.Equal((Double)3, generator.GetValue()); - Assert.Equal((Double)4, generator.GetValue()); - Assert.Equal((Double)5, generator.GetValue()); + Assert.AreEqual((Double)3, generator.GetValue()); + Assert.AreEqual((Double)4, generator.GetValue()); + Assert.AreEqual((Double)5, generator.GetValue()); generator = new SequenceGeneratorDouble { From = 3, Step = 3 }; - Assert.Equal((Double)3, generator.GetValue()); - Assert.Equal((Double)6, generator.GetValue()); - Assert.Equal((Double)9, generator.GetValue()); + Assert.AreEqual((Double)3, generator.GetValue()); + Assert.AreEqual((Double)6, generator.GetValue()); + Assert.AreEqual((Double)9, generator.GetValue()); generator = new SequenceGeneratorDouble { From = 3, Step = -3 }; - Assert.Equal((Double)3, generator.GetValue()); - Assert.Equal((Double)0, generator.GetValue()); - Assert.Equal((Double)(-3), generator.GetValue()); + Assert.AreEqual((Double)3, generator.GetValue()); + Assert.AreEqual((Double)0, generator.GetValue()); + Assert.AreEqual((Double)(-3), generator.GetValue()); generator = new SequenceGeneratorDouble { From = Double.MaxValue - 1 }; - Assert.Equal((Double)(Double.MaxValue - 1), generator.GetValue()); - Assert.Equal((Double)(Double.MaxValue - 0), generator.GetValue()); + Assert.AreEqual((Double)(Double.MaxValue - 1), generator.GetValue()); + Assert.AreEqual((Double)(Double.MaxValue - 0), generator.GetValue()); } - [Fact] + [TestMethod] public void SequenceGeneratorDateTime__Should_work() { var generator = new SequenceGeneratorDateTime(); - Assert.Equal(new DateTime().AddDays(0), generator.GetValue()); - Assert.Equal(new DateTime().AddDays(1), generator.GetValue()); - Assert.Equal(new DateTime().AddDays(2), generator.GetValue()); + Assert.AreEqual(new DateTime().AddDays(0), generator.GetValue()); + Assert.AreEqual(new DateTime().AddDays(1), generator.GetValue()); + Assert.AreEqual(new DateTime().AddDays(2), generator.GetValue()); var date = DateTime.Now.Date; generator = new SequenceGeneratorDateTime { From = date }; - Assert.Equal(date.AddDays(0), generator.GetValue()); - Assert.Equal(date.AddDays(1), generator.GetValue()); - Assert.Equal(date.AddDays(2), generator.GetValue()); + Assert.AreEqual(date.AddDays(0), generator.GetValue()); + Assert.AreEqual(date.AddDays(1), generator.GetValue()); + Assert.AreEqual(date.AddDays(2), generator.GetValue()); generator = new SequenceGeneratorDateTime { From = date, Step = TimeSpan.FromDays(3) }; - Assert.Equal(date.AddDays(0), generator.GetValue()); - Assert.Equal(date.AddDays(3), generator.GetValue()); - Assert.Equal(date.AddDays(6), generator.GetValue()); + Assert.AreEqual(date.AddDays(0), generator.GetValue()); + Assert.AreEqual(date.AddDays(3), generator.GetValue()); + Assert.AreEqual(date.AddDays(6), generator.GetValue()); generator = new SequenceGeneratorDateTime { From = date, Step = TimeSpan.FromDays(-3) }; - Assert.Equal(date.AddDays(0), generator.GetValue()); - Assert.Equal(date.AddDays(-3), generator.GetValue()); - Assert.Equal(date.AddDays(-6), generator.GetValue()); + Assert.AreEqual(date.AddDays(0), generator.GetValue()); + Assert.AreEqual(date.AddDays(-3), generator.GetValue()); + Assert.AreEqual(date.AddDays(-6), generator.GetValue()); } } diff --git a/Tynamix.ObjectFiller.Test/SetupTests.cs b/Tynamix.ObjectFiller.Test/SetupTests.cs index 8a0cc16..101b754 100644 --- a/Tynamix.ObjectFiller.Test/SetupTests.cs +++ b/Tynamix.ObjectFiller.Test/SetupTests.cs @@ -1,11 +1,12 @@ using System; -using Xunit; +using Microsoft.VisualStudio.TestTools.UnitTesting; + namespace ObjectFiller.Test { using Tynamix.ObjectFiller; - + [TestClass] public class SetupTests { public class Parent @@ -22,7 +23,7 @@ public class Child public string StringValue { get; set; } } - [Fact] + [TestMethod] public void ExplicitSetupShallJustFillPropertiesWhichAreSetUpEvenInSubtypes() { Filler filler = new Filler(); @@ -31,14 +32,14 @@ public void ExplicitSetupShallJustFillPropertiesWhichAreSetUpEvenInSubtypes() var parent = filler.Create(); - Assert.NotNull(parent); - Assert.NotNull(parent.Child); - Assert.Null(parent.SomeId); - Assert.InRange(parent.Child.IntValue, 1, 20); - Assert.Null(parent.Child.StringValue); + Assert.IsNotNull(parent); + Assert.IsNotNull(parent.Child); + Assert.IsNull(parent.SomeId); + Assert.IsTrue(parent.Child.IntValue > 1 && parent.Child.IntValue < 20); + Assert.IsNull(parent.Child.StringValue); } - [Fact] + [TestMethod] public void ExplicitSetupShallJustFillPropertiesWhichAreSetUpAndNoInstanceShallCreateForSubTypesIfNotSetup() { Filler filler = new Filler(); @@ -47,14 +48,14 @@ public void ExplicitSetupShallJustFillPropertiesWhichAreSetUpAndNoInstanceShallC var parent = filler.Create(); - Assert.NotNull(parent); - Assert.Null(parent.Child); - Assert.NotNull(parent.SomeId); + Assert.IsNotNull(parent); + Assert.IsNull(parent.Child); + Assert.IsNotNull(parent.SomeId); } - [Fact] + [TestMethod] public void RandomizerCreatesObjectsBasedOnPreviouseSetups() { int givenValue = Randomizer.Create(); @@ -63,10 +64,10 @@ public void RandomizerCreatesObjectsBasedOnPreviouseSetups() var childSetup = childFiller.Setup().OnProperty(x => x.IntValue).Use(givenValue).Result; var child = Randomizer.Create(childSetup); - Assert.Equal(givenValue, child.IntValue); + Assert.AreEqual(givenValue, child.IntValue); } - [Fact] + [TestMethod] public void UseSetupsAgainForPropertyConfigurations() { int givenValue = Randomizer.Create(); @@ -78,10 +79,10 @@ public void UseSetupsAgainForPropertyConfigurations() parentFiller.Setup().OnProperty(x => x.Child).Use(childSetup); var parent = parentFiller.Create(); - Assert.Equal(givenValue, parent.Child.IntValue); + Assert.AreEqual(givenValue, parent.Child.IntValue); } - [Fact] + [TestMethod] public void UseSetupsAgainForTypeConfigurations() { int givenValue = Randomizer.Create(); @@ -93,10 +94,10 @@ public void UseSetupsAgainForTypeConfigurations() parentFiller.Setup().OnType().Use(childSetup); var parent = parentFiller.Create(); - Assert.Equal(givenValue, parent.Child.IntValue); + Assert.AreEqual(givenValue, parent.Child.IntValue); } - [Fact] + [TestMethod] public void UseSetupsAgain() { int givenValue = Randomizer.Create(); @@ -109,27 +110,27 @@ public void UseSetupsAgain() var child = secondChildFiller.Create(); - Assert.Equal(givenValue, child.IntValue); + Assert.AreEqual(givenValue, child.IntValue); } - [Fact] + [TestMethod] public void SetupsCanBeCreatedWithFactoryMethod() { var childSetup = FillerSetup.Create().OnProperty(x => x.IntValue).Use(42).Result; var child = Randomizer.Create(childSetup); - Assert.Equal(42, child.IntValue); + Assert.AreEqual(42, child.IntValue); } - [Fact] + [TestMethod] public void SetupsCanBeCreatedWithFactoryMethodBasedOnExistingSetupManager() { var childSetup = FillerSetup.Create().OnProperty(x => x.IntValue).Use(42).Result; childSetup = FillerSetup.Create(childSetup).OnProperty(x => x.StringValue).Use("Juchu").Result; var child = Randomizer.Create(childSetup); - Assert.Equal(42, child.IntValue); - Assert.Equal("Juchu", child.StringValue); + Assert.AreEqual(42, child.IntValue); + Assert.AreEqual("Juchu", child.StringValue); } } } diff --git a/Tynamix.ObjectFiller.Test/StreetNamesPluginTest.cs b/Tynamix.ObjectFiller.Test/StreetNamesPluginTest.cs index 6b3f398..62d069d 100644 --- a/Tynamix.ObjectFiller.Test/StreetNamesPluginTest.cs +++ b/Tynamix.ObjectFiller.Test/StreetNamesPluginTest.cs @@ -1,39 +1,41 @@ - using Xunit; + + +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ObjectFiller.Test { using Tynamix.ObjectFiller; - + [TestClass] public class StreetNamesPluginTest { - [Fact] + [TestMethod] public void RandomNameIsReturned() { var sut = new StreetName(City.Dresden); var value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); + Assert.IsFalse(string.IsNullOrEmpty(value)); sut = new StreetName(City.NewYork); value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); + Assert.IsFalse(string.IsNullOrEmpty(value)); sut = new StreetName(City.London); value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); + Assert.IsFalse(string.IsNullOrEmpty(value)); sut = new StreetName(City.Moscow); value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); + Assert.IsFalse(string.IsNullOrEmpty(value)); sut = new StreetName(City.Paris); value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); + Assert.IsFalse(string.IsNullOrEmpty(value)); sut = new StreetName(City.Tokyo); value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); + Assert.IsFalse(string.IsNullOrEmpty(value)); } } } diff --git a/Tynamix.ObjectFiller.Test/TestIgnoranceOfInheritance.cs b/Tynamix.ObjectFiller.Test/TestIgnoranceOfInheritance.cs index ad38718..7aea615 100644 --- a/Tynamix.ObjectFiller.Test/TestIgnoranceOfInheritance.cs +++ b/Tynamix.ObjectFiller.Test/TestIgnoranceOfInheritance.cs @@ -2,12 +2,13 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace ObjectFiller.Test { using ObjectFiller.Test.TestPoco.Person; - using Xunit; + using Tynamix.ObjectFiller; public class Student : Person @@ -15,20 +16,21 @@ public class Student : Person public string Class { get; set; } } + [TestClass] public class TestIgnoranceOfInheritance { - [Fact] + [TestMethod] public void IfIgnoreInheritanceIsSetToTrueTheNameOfTheStudentShouldBeNull() { Filler filler = new Filler(); filler.Setup().IgnoreInheritance(); var student = filler.Create(); - Assert.Null(student.FirstName); - Assert.NotNull(student.Class); + Assert.IsNull(student.FirstName); + Assert.IsNotNull(student.Class); } - [Fact] + [TestMethod] public void IfIgnoreInheritanceIsSetToFalseTheNameOfTheStudentShouldNotBeNull() { Filler filler = new Filler(); @@ -36,8 +38,8 @@ public void IfIgnoreInheritanceIsSetToFalseTheNameOfTheStudentShouldNotBeNull() .OnType().CreateInstanceOf
(); var student = filler.Create(); - Assert.NotNull(student.FirstName); - Assert.NotNull(student.Class); + Assert.IsNotNull(student.FirstName); + Assert.IsNotNull(student.Class); } } } diff --git a/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj b/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj index 41dafc5..657e602 100644 --- a/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj +++ b/Tynamix.ObjectFiller.Test/Tynamix.ObjectFiller.Test.csproj @@ -1,46 +1,9 @@  - netcoreapp1.0 + net46 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From d2dadd3105f9871b8972002c4a3264101c8bf8c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20K=C3=B6hler?= Date: Mon, 13 Feb 2017 23:36:55 +0100 Subject: [PATCH 3/3] Removed unneccessary project --- .../AddressFillingTest.cs | 125 ------- .../Bug68HashsetCanNotBeCreated.cs | 25 -- ...ug87ErrorWhenNameInParentIsSameAsParent.cs | 39 --- .../Bug89FillTypesInheritsFromDictionary.cs | 43 --- .../Bug89FillTypesInheritsFromList.cs | 43 --- .../CityNamesPluginTest.cs | 19 - .../CollectionizerTest.cs | 80 ----- .../CopyConstructorTest.cs | 62 ---- .../CountryNamesPlugin.cs | 19 - .../CreateInstanceTest.cs | 78 ----- .../DateTimeRangeTest.cs | 72 ---- .../DefaultDatatypeMappingsTest.cs | 72 ---- .../EmailAddressesPluginTest.cs | 122 ------- Tynamix.ObjectFiller.TestBCK/EnumTest.cs | 156 --------- .../HashStackTests.cs | 35 -- .../IpAddressPluginTest.cs | 88 ----- .../LibraryFillingTest.cs | 130 ------- .../ListFillingTest.cs | 158 --------- .../LoremIpsumPluginTest.cs | 97 ----- .../ObjectFillerRecursiveTests.cs | 188 ---------- .../ObjectFillerTest.cs | 45 --- .../PatternGeneratorTest.cs | 287 --------------- .../PersonFillingTest.cs | 241 ------------- .../Properties/AssemblyInfo.cs | 23 -- .../RandomAccessTest.cs | 46 --- .../RandomizerPluginFake.cs | 31 -- .../RandomizerTest.cs | 98 ------ .../RangePluginTest.cs | 56 --- .../RealNamePluginTest.cs | 67 ---- .../SaveFillerSetupTest.cs | 75 ---- .../SequenceGeneratorTest.cs | 331 ------------------ Tynamix.ObjectFiller.TestBCK/SetupTests.cs | 135 ------- .../StreetNamesPluginTest.cs | 39 --- .../TestIgnoranceOfInheritance.cs | 43 --- .../TestPoco/Library/Book.cs | 21 -- .../TestPoco/Library/IBook.cs | 7 - .../TestPoco/Library/Library.cs | 15 - .../Library/LibraryConstructorDictionary.cs | 31 -- .../Library/LibraryConstructorList.cs | 18 - .../Library/LibraryConstructorPoco.cs | 13 - .../Library/LibraryConstructorWithSimple.cs | 12 - .../TestPoco/ListTest/Entity.cs | 9 - .../TestPoco/ListTest/EntityCollection.cs | 22 -- .../TestPoco/Person/Address.cs | 15 - .../TestPoco/Person/IAddress.cs | 7 - .../Person/OrderedPersonProperties.cs | 63 ---- .../TestPoco/Person/Person.cs | 30 -- .../TestPoco/SimpleList.cs | 9 - .../TestPoco/TestEnum.cs | 13 - .../Tynamix.ObjectFiller.Test.csproj | 38 -- .../Properties/AssemblyInfo.cs | 4 +- .../Tynamix.ObjectFiller.csproj | 105 +++++- 52 files changed, 106 insertions(+), 3494 deletions(-) delete mode 100644 Tynamix.ObjectFiller.TestBCK/AddressFillingTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug68HashsetCanNotBeCreated.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromList.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/CityNamesPluginTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/CollectionizerTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/CopyConstructorTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/CountryNamesPlugin.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/CreateInstanceTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/DateTimeRangeTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/DefaultDatatypeMappingsTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/EmailAddressesPluginTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/EnumTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/HashStackTests.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/IpAddressPluginTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/LibraryFillingTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/ListFillingTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/LoremIpsumPluginTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/ObjectFillerRecursiveTests.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/ObjectFillerTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/PatternGeneratorTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/PersonFillingTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/Properties/AssemblyInfo.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/RandomAccessTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/RandomizerPluginFake.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/RandomizerTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/RangePluginTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/RealNamePluginTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/SaveFillerSetupTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/SequenceGeneratorTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/SetupTests.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/StreetNamesPluginTest.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestIgnoranceOfInheritance.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Book.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/IBook.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Library.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorDictionary.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorList.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorPoco.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorWithSimple.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/Entity.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/EntityCollection.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Address.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Person/IAddress.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Person/OrderedPersonProperties.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Person.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/SimpleList.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/TestPoco/TestEnum.cs delete mode 100644 Tynamix.ObjectFiller.TestBCK/Tynamix.ObjectFiller.Test.csproj diff --git a/Tynamix.ObjectFiller.TestBCK/AddressFillingTest.cs b/Tynamix.ObjectFiller.TestBCK/AddressFillingTest.cs deleted file mode 100644 index ec110e5..0000000 --- a/Tynamix.ObjectFiller.TestBCK/AddressFillingTest.cs +++ /dev/null @@ -1,125 +0,0 @@ -using Xunit; -using ObjectFiller.Test.TestPoco.Person; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - using System.Linq; - - - public class AddressFillingTest - { - [Fact] - public void FillAllAddressProperties() - { - Filler
addressFiller = new Filler
(); - Address a = addressFiller.Create(); - - Assert.NotNull(a.City); - Assert.NotNull(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); - } - - [Fact] - public void IgnoreCountry() - { - Filler
addressFiller = new Filler
(); - addressFiller.Setup() - .OnProperty(x => x.Country).IgnoreIt(); - Address a = addressFiller.Create(); - - Assert.NotNull(a.City); - Assert.Null(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); - } - - [Fact] - public void IgnoreCountryAndCity() - { - Filler
addressFiller = new Filler
(); - addressFiller.Setup() - .OnProperty(x => x.Country, x => x.City).IgnoreIt(); - Address a = addressFiller.Create(); - - Assert.Null(a.City); - Assert.Null(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); - } - - [Fact] - public void SetupCityPropertyWithConstantValue() - { - Filler
addressFiller = new Filler
(); - addressFiller.Setup() - .OnProperty(ad => ad.City).Use(() => "City"); - Address a = addressFiller.Create(); - - Assert.Equal("City", a.City); - Assert.NotNull(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); - } - - [Fact] - public void SetupCityAndCountryPropertyWithConstantValue() - { - Filler
addressFiller = new Filler
(); - addressFiller.Setup() - .OnProperty(ad => ad.City, ad => ad.Country).Use(() => "CityCountry"); - Address a = addressFiller.Create(); - - Assert.Equal("CityCountry", a.City); - Assert.NotNull(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); - } - - [Fact] - public void SetupTheAdressWithStaticValues() - { - Filler
addressFiller = new Filler
(); - addressFiller.Setup() - .OnType().Use(10) - .OnProperty(x => x.City).Use("Dresden") - .OnProperty(x => x.Country).Use("Germany") - .OnProperty(x => x.PostalCode).Use(() => "0011100"); - - var address = addressFiller.Create(); - Assert.Equal("Dresden", address.City); - Assert.Equal("Germany", address.Country); - Assert.Equal("0011100", address.PostalCode); - Assert.Equal(10, address.HouseNumber); - } - - [Fact] - public void RandomListPluginShallReturnDifferentValues() - { - Filler
addressFiller = new Filler
(); - - addressFiller.Setup().OnProperty(x => x.City).Use(new RandomListItem("Test1", "Test2")); - - var addresses = addressFiller.Create(1000); - - Assert.True(addresses.Any(x => x.City == "Test2")); - - addressFiller = new Filler
(); - - addressFiller.Setup().OnProperty(x => x.City).Use(new RandomListItem("Test1")); - - addresses = addressFiller.Create(1000); - - Assert.True(addresses.All(x => x.City == "Test1")); - - } - - - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug68HashsetCanNotBeCreated.cs b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug68HashsetCanNotBeCreated.cs deleted file mode 100644 index d868d41..0000000 --- a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug68HashsetCanNotBeCreated.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace ObjectFiller.Test.BugfixTests -{ - using Tynamix.ObjectFiller; - - using Xunit; - - public class Bug68HashsetCanNotBeCreated - { - [Fact] - public void AHashsetShouldBeGenerated() - { - Filler> filler = new Filler>(); - - var hashset = filler.Create(); - - Assert.NotNull(hashset); - Assert.True(hashset.Any()); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs deleted file mode 100644 index 520ca4e..0000000 --- a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug87ErrorWhenNameInParentIsSameAsParent.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace ObjectFiller.Test.BugfixTests -{ - using Tynamix.ObjectFiller; - - using Xunit; - - public class Bug87ErrorWhenNameInParentIsSameAsParent - { - public class Parent - { - public int MakeTheError { get; set; } - - public Child Child { get; set; } - - } - - public class Child - { - public string MakeTheError { get; set; } - } - - [Fact] - public void ParentShallGetFilledWithourError() - { - Filler filler = new Filler(); - - var filledObject = filler.Create(); - Assert.NotNull(filledObject); - Assert.NotNull(filledObject.MakeTheError); - Assert.False(string.IsNullOrWhiteSpace(filledObject.Child.MakeTheError)); - } - } -} - diff --git a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs deleted file mode 100644 index e21fa27..0000000 --- a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromDictionary.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace ObjectFiller.Test.BugfixTests -{ - using Tynamix.ObjectFiller; - - using Xunit; - - - public class Bug89FillTypesInheritsFromDictionary - { - public class EntityA - { - public string Name { get; set; } - public int ID { get; set; } - public EntityBList Bs { get; set; } - } - public class EntityB - { - public string Name { get; set; } - public Guid ID { get; set; } - } - public class EntityBList : Dictionary - { - public DateTime SomeDate { get; set; } - } - - [Fact] - public void ADerivedDictionaryShallGetFilledAllProperties() - { - Filler filler = new Filler(); - - var result = filler.Create(); - - Assert.NotNull(result.Bs); - Assert.InRange(result.Bs.SomeDate, DateTime.MinValue.AddSeconds(1), DateTime.MaxValue.AddSeconds(-1)); - Assert.True(result.Bs.Any()); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromList.cs b/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromList.cs deleted file mode 100644 index d22e1ee..0000000 --- a/Tynamix.ObjectFiller.TestBCK/BugfixTests/Bug89FillTypesInheritsFromList.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace ObjectFiller.Test.BugfixTests -{ - using Tynamix.ObjectFiller; - - using Xunit; - - - public class Bug89FillTypesInheritsFromList - { - public class EntityA - { - public string Name { get; set; } - public int ID { get; set; } - public EntityBList Bs { get; set; } - } - public class EntityB - { - public string Name { get; set; } - public Guid ID { get; set; } - } - public class EntityBList : List - { - public DateTime SomeDate { get; set; } - } - - [Fact] - public void ADerivedListShallGetFilledAllProperties() - { - Filler filler = new Filler(); - - var result = filler.Create(); - - Assert.NotNull(result.Bs); - Assert.InRange(result.Bs.SomeDate, DateTime.MinValue.AddSeconds(1), DateTime.MaxValue.AddSeconds(-1)); - Assert.True(result.Bs.Any()); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/CityNamesPluginTest.cs b/Tynamix.ObjectFiller.TestBCK/CityNamesPluginTest.cs deleted file mode 100644 index f3caad6..0000000 --- a/Tynamix.ObjectFiller.TestBCK/CityNamesPluginTest.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace ObjectFiller.Test -{ - using Xunit; - - using Tynamix.ObjectFiller; - - - public class CityNamesPluginTest - { - [Fact] - public void RandomNameIsReturned() - { - var sut = new CityName(); - var value = sut.GetValue(); - - Assert.False(string.IsNullOrEmpty(value)); - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/CollectionizerTest.cs b/Tynamix.ObjectFiller.TestBCK/CollectionizerTest.cs deleted file mode 100644 index 4edca68..0000000 --- a/Tynamix.ObjectFiller.TestBCK/CollectionizerTest.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using Tynamix.ObjectFiller; -using Xunit; - -namespace ObjectFiller.Test -{ - public class CollectionizerPoco - { - public IEnumerable MnemonicStrings { get; set; } - - public List IntRange { get; set; } - - public ArrayList ArrayList { get; set; } - } - - public class CollectionizerTest - { - [Fact] - public void TestCityNames() - { - var filler = new Filler(); - - filler.Setup() - .OnProperty(x => x.ArrayList) - .Use(new Collectionizer(new MnemonicString(1, 20, 25), 3, 10)); - - var arrayList = filler.Create(); - Assert.True(arrayList.ArrayList.Count >= 3 && arrayList.ArrayList.Count <= 10); - Assert.True(arrayList.ArrayList.ToArray().Cast().All(x => x.Length >= 20 && x.Length <= 25)); - } - - [Fact] - public void TestMnemonicStringPlugin() - { - var filler = new Filler(); - - filler.Setup() - .OnProperty(x => x.MnemonicStrings) - .Use(new Collectionizer(new MnemonicString(1, 20, 25), 3, 10)); - - var collection = filler.Create(); - Assert.True(collection.MnemonicStrings.Count() >= 3 && collection.MnemonicStrings.Count() <= 10); - Assert.True(collection.MnemonicStrings.All(x => x.Length >= 20 && x.Length <= 25)); - } - - [Fact] - public void TestMnemonicStringPluginTest() - { - var filler = new Filler(); - - filler.Setup() - .OnProperty(x => x.MnemonicStrings).Use>(); - - var collection = filler.Create(); - - Assert.NotNull(collection); - Assert.NotNull(collection.MnemonicStrings); - Assert.NotEmpty(collection.MnemonicStrings); - - collection.MnemonicStrings.ToList().ForEach(s => Debug.WriteLine(s)); - } - - [Fact] - public void TestIntRangePlugin() - { - var filler = new Filler(); - - filler.Setup() - .OnProperty(x => x.IntRange) - .Use(new Collectionizer(new IntRange(10, 15), 3, 10)); - - var collection = filler.Create(); - Assert.True(collection.IntRange.Count >= 3 && collection.IntRange.Count() <= 10); - Assert.True(collection.IntRange.All(x => x >= 10 && x <= 15)); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/CopyConstructorTest.cs b/Tynamix.ObjectFiller.TestBCK/CopyConstructorTest.cs deleted file mode 100644 index 1ba4e0e..0000000 --- a/Tynamix.ObjectFiller.TestBCK/CopyConstructorTest.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using Xunit; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class CopyConstructorTest - { - - [Fact] - public void WhenClassWithCopyConstructorIsCreatedNoExceptionShallBeThrown() - { - var f = new Filler(); - var cc = f.Create(); - - Assert.NotNull(cc); - } - - [Fact] - public void WhenClassWithJustCopyConstructorIsCreatedAExceptionShallBeThrown() - { - var f = new Filler(); - Assert.Throws(() => f.Create()); - - } - } - - public class ClassWithCopyConstructor - { - - public ClassWithCopyConstructor(ClassWithCopyConstructor constructor) - { - Count1 = constructor.Count1; - Count2 = constructor.Count2; - } - - public int Count1 { get; set; } - - public int Count2 { get; set; } - } - - - public class ClassWithCopyConstructorAndNormalConstructor - { - public ClassWithCopyConstructorAndNormalConstructor(int count1, int count2) - { - Count1 = count1; - Count2 = count2; - } - - public ClassWithCopyConstructorAndNormalConstructor(ClassWithCopyConstructorAndNormalConstructor constructor) - : this(constructor.Count1, constructor.Count2) - { - - } - - public int Count1 { get; set; } - - public int Count2 { get; set; } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/CountryNamesPlugin.cs b/Tynamix.ObjectFiller.TestBCK/CountryNamesPlugin.cs deleted file mode 100644 index d838d6f..0000000 --- a/Tynamix.ObjectFiller.TestBCK/CountryNamesPlugin.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace ObjectFiller.Test -{ - using Xunit; - - using Tynamix.ObjectFiller; - - - public class CountryNamesPlugin - { - [Fact] - public void RandomNameIsReturned() - { - var sut = new CountryName(); - var value = sut.GetValue(); - - Assert.False(string.IsNullOrEmpty(value)); - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/CreateInstanceTest.cs b/Tynamix.ObjectFiller.TestBCK/CreateInstanceTest.cs deleted file mode 100644 index ed17949..0000000 --- a/Tynamix.ObjectFiller.TestBCK/CreateInstanceTest.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using Xunit; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public abstract class Parent - { - public Parent(int id) - { - Id = id; - } - - public int Id { get; set; } - - } - - public class ChildOne : Parent - { - public ChildOne(int id) - : base(id) - { - } - - public string Name { get; set; } - } - - public class ChildTwo : Parent - { - public ChildTwo(int id) - : base(id) - { - } - - public string OtherName { get; set; } - } - - public class ParentOfParent - { - public ParentOfParent() - { - Parents = new List(); - } - - public List Parents { get; private set; } - - } - - - - public class CreateInstanceTest - { - - [Fact] - public void TestCreateInstanceOfChildOne() - { - Filler p = new Filler(); - - p.Setup().OnType().CreateInstanceOf() - .SetupFor() - .OnProperty(x => x.Name).Use(() => "TEST"); - - var pop = p.Create(); - - Assert.NotNull(pop); - Assert.NotNull(pop.Parents); - Assert.True(pop.Parents.All(x => x is ChildOne)); - Assert.False(pop.Parents.Any(x => x is ChildTwo)); - - Assert.True(pop.Parents.Cast().All(x => x.Name == "TEST")); - - - } - - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/DateTimeRangeTest.cs b/Tynamix.ObjectFiller.TestBCK/DateTimeRangeTest.cs deleted file mode 100644 index da23300..0000000 --- a/Tynamix.ObjectFiller.TestBCK/DateTimeRangeTest.cs +++ /dev/null @@ -1,72 +0,0 @@ -namespace ObjectFiller.Test -{ - using System; - using System.Linq; - - using Xunit; - - using Tynamix.ObjectFiller; - - public class DateRangeTestClass - { - public DateTime Date { get; set; } - } - - - public class DateTimeRangeTest - { - [Fact] - public void WhenGettingDatesBetweenNowAnd31DaysAgo() - { - Filler filler = new Filler(); - - filler.Setup().OnType().Use( - new DateTimeRange(DateTime.Now.AddDays(-31))); - - var d = filler.Create(1000); - - Assert.True(d.All(x => x.Date < DateTime.Now && x.Date > DateTime.Now.AddDays(-31))); - } - - [Fact] - public void WhenStartDateIsBiggerThenEndDateTheDatesShouldBeSwitched() - { - Filler filler = new Filler(); - - filler.Setup().OnType().Use( - new DateTimeRange(DateTime.Now, DateTime.Now.AddDays(-31))); - - var d = filler.Create(1000); - - Assert.True(d.All(x => x.Date < DateTime.Now && x.Date > DateTime.Now.AddDays(-31))); - } - - [Fact] - public void WhenStartDateAndEndDateIsSetItShouldFindOnlyDatesInBetweenThisTwoDates() - { - var startDate = new DateTime(2000, 11, 10); - var endDate = new DateTime(2006, 1, 30); - - Filler filler = new Filler(); - - filler.Setup().OnType().Use(new DateTimeRange(startDate, endDate)); - - var d = filler.Create(1000); - d.ToList().ForEach(x => Console.WriteLine(x.Date)); - Assert.True(d.All(x => x.Date < endDate && x.Date > startDate)); - } - - [Fact] - public void WhenConstructorWithDateTimeNowWillBeCalledNoExceptionShouldBeThrown() - { - Filler filler = new Filler(); - - filler.Setup().OnProperty(x => x.Date).Use(new DateTimeRange(DateTime.Now)); - - var dateTime = filler.Create(); - - Assert.True(dateTime.Date > DateTime.MinValue); - Assert.True(dateTime.Date < DateTime.MaxValue); - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/DefaultDatatypeMappingsTest.cs b/Tynamix.ObjectFiller.TestBCK/DefaultDatatypeMappingsTest.cs deleted file mode 100644 index 90269a3..0000000 --- a/Tynamix.ObjectFiller.TestBCK/DefaultDatatypeMappingsTest.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using System.Diagnostics; -using System.Linq; - using Xunit; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class DefaultDatatypeMappingsTest - { - [Fact] - public void Ensure_that_double_does_not_return_infinity() - { - var filler = new Filler(); - var myClass = filler.Create(); - Assert.False(double.IsInfinity(myClass._double)); - - Assert.False(float.IsInfinity(myClass._float)); - } - - [Fact] - public void Ensure_that_each_primitive_datatype_is_mapped_by_default() - { - var filler = new Filler(); - var myClasses = filler.Create(100).ToArray(); - foreach (var myClass in myClasses) - { - Assert.NotEqual(default(Guid), myClass._Guid); - Assert.NotEqual(default(decimal), myClass._Decimal); - } - } - - public class MyClass - { - public bool _bool { get; set; } - public byte _byte { get; set; } - public char _char { get; set; } - public Int16 _i16 { get; set; } - public Int32 _i32 { get; set; } - public Int64 _i64 { get; set; } - public UInt16 _u16 { get; set; } - public UInt32 _u32 { get; set; } - public UInt64 _u64 { get; set; } - public float _float { get; set; } - public double _double { get; set; } - public decimal _Decimal { get; set; } - public IntPtr _IntPtr { get; set; } - public DateTime _DateTime { get; set; } - public TimeSpan _TimeSpan { get; set; } - public Guid _Guid { get; set; } - public string _String { get; set; } - - public bool? _n_bool { get; set; } - public byte? _n_byte { get; set; } - public char? _n_char { get; set; } - public Int16? _n_i16 { get; set; } - public Int32? _n_i32 { get; set; } - public Int64? _n_i64 { get; set; } - public UInt16? _n_u16 { get; set; } - public UInt32? _n_u32 { get; set; } - public UInt64? _n_u64 { get; set; } - public float? _n_float { get; set; } - public double? _n_double { get; set; } - public decimal? _n_Decimal { get; set; } - public IntPtr? _n_IntPtr { get; set; } - public DateTime? _n_DateTime { get; set; } - public TimeSpan? _n_TimeSpan { get; set; } - public Guid? _n_Guid { get; set; } - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/EmailAddressesPluginTest.cs b/Tynamix.ObjectFiller.TestBCK/EmailAddressesPluginTest.cs deleted file mode 100644 index 39eabb5..0000000 --- a/Tynamix.ObjectFiller.TestBCK/EmailAddressesPluginTest.cs +++ /dev/null @@ -1,122 +0,0 @@ -using System.Text.RegularExpressions; -using Xunit; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class EmailAddressesPluginTests - { - public string StandardAssertMessage = "Given value does not match e-mail address standard."; - - /// - /// Regex for EMail addresses based on RFC 5322. Unfortunately, it does not find whitespace and yes I am to dumb to fix this issue... - /// - /// - private static Regex RFC5322RegEx = - new Regex(@"[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?", RegexOptions.IgnoreCase); - - [Fact] - public void DefaultModeShouldReturnValidEmailAdress() - { - var value = new EmailAddresses().GetValue(); - Assert.True(RFC5322RegEx.IsMatch(value)); - } - - [Fact] - public void TwoCallsCreateTwoDifferentEMailAddresses() - { - var sut = new EmailAddresses(); - var firstValue = sut.GetValue(); - var secondValue = sut.GetValue(); - - Assert.NotEqual(firstValue, secondValue); - } - - [Fact] - public void EMailAddressMustBeValidWithRealNames() - { - var sut = new EmailAddresses(); - - var value = sut.GetValue(); - - Assert.True(RFC5322RegEx.IsMatch(value)); - } - - [Fact] - public void DomainNamesAreUsedFromRandomData() - { - var referenceValue = "google.com"; - var fake = new FakeRandomizerPlugin(referenceValue); - - var sut = new EmailAddresses(fake, fake); - - var result = sut.GetValue(); - - Assert.EndsWith(referenceValue, result); - Assert.True(RFC5322RegEx.IsMatch(result)); - } - - [Fact] - public void PluginMustEnsureValidAddressesEvenAnInvalidDomainNameIsProvided() - { - var referenceValue = "googlecom"; - var fake = new FakeRandomizerPlugin(referenceValue); - - var sut = new EmailAddresses(fake, fake); - - var result = sut.GetValue(); - Assert.True(RFC5322RegEx.IsMatch(result)); - } - - [Fact] - public void LocalPathMustBeUsedFromRandomData() - { - var referenceValue = "karl"; - var fake = new FakeRandomizerPlugin(referenceValue); - - var sut = new EmailAddresses(fake); - - var result = sut.GetValue(); - - Assert.StartsWith(referenceValue, result); - Assert.True(RFC5322RegEx.IsMatch(result)); - } - - [Fact] - public void PluginMustEnsureValidAddressesEvenAnInvalidLocalPartIsProvided() - { - var referenceValue = "ka rl"; - var fake = new FakeRandomizerPlugin(referenceValue); - - var sut = new EmailAddresses(fake); - - var result = sut.GetValue(); - - Assert.True(RFC5322RegEx.IsMatch(result)); - } - - [Fact] - public void GivenDomainRootIsAttachedToGeneratedEmailAddress() - { - var domainRoot = ".de"; - var sut = new EmailAddresses(domainRoot); - - var result = sut.GetValue(); - - Assert.EndsWith(domainRoot, result); - Assert.True(RFC5322RegEx.IsMatch(result)); - } - - [Fact] - public void EmailAddressesWorksInCombinationWithRealNamesPlugin() - { - var realNames = new RealNames(NameStyle.FirstNameLastName); - - var sut = new EmailAddresses(realNames); - var result = sut.GetValue(); - - Assert.True(RFC5322RegEx.IsMatch(result)); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/EnumTest.cs b/Tynamix.ObjectFiller.TestBCK/EnumTest.cs deleted file mode 100644 index cc2a22e..0000000 --- a/Tynamix.ObjectFiller.TestBCK/EnumTest.cs +++ /dev/null @@ -1,156 +0,0 @@ -using System; - using Xunit; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class EnumTest - { - [Fact] - public void Must_support_enums_out_of_the_box() - { - var filler = new Filler(); - filler.Setup() - .OnProperty(x => x.Manual).Use(() => ManualSetupEnum.B) - .OnProperty(x => x.Ignored).IgnoreIt(); - - for (int n = 0; n < 1000; n++) - { - var c = filler.Create(); - - Assert.True( - c.Standard == StandardEnum.A || - c.Standard == StandardEnum.B || - c.Standard == StandardEnum.C); - - Assert.True( - c.Numbered == NumberedEnum.A || - c.Numbered == NumberedEnum.B || - c.Numbered == NumberedEnum.C); - - Assert.True( - c.Flags == FlagsEnum.A || - c.Flags == FlagsEnum.B || - c.Flags == FlagsEnum.C); - - Assert.True((int)c.Nasty == 0); - - Assert.True(c.Manual == ManualSetupEnum.B); - - Assert.True((int)c.Ignored == 0); - } - } - - [Fact] - public void Must_support_class_with_enums_as_ctor_out_of_the_box() - { - var filler = new Filler(); - filler.Setup().OnProperty(x => x.Manual).Use(() => ManualSetupEnum.B); - - for (int n = 0; n < 1000; n++) - { - var c = filler.Create(); - - Assert.True( - c.Standard == StandardEnum.A || - c.Standard == StandardEnum.B || - c.Standard == StandardEnum.C); - - Assert.True( - c.Numbered == NumberedEnum.A || - c.Numbered == NumberedEnum.B || - c.Numbered == NumberedEnum.C); - - Assert.True( - c.Flags == FlagsEnum.A || - c.Flags == FlagsEnum.B || - c.Flags == FlagsEnum.C); - - Assert.True((int)c.Nasty == 0); - - Assert.True(c.Manual == ManualSetupEnum.B); - } - } - - [Fact] - public void FillNullableEnum() - { - var filler = new Filler(); - - var c = filler.Create(); - Assert.True( - c.NullableEnum == StandardEnum.A || - c.NullableEnum == StandardEnum.B || - c.NullableEnum == StandardEnum.C); - } - - - public enum StandardEnum - { - A, B, C - } - - public enum NumberedEnum - { - A = 1, B = 3, C = 5 - } - - [Flags] - public enum FlagsEnum - { - A = 0x01, - B = 0x02, - C = A | B, - } - - [Flags] - public enum NastyEmptyEnum - { - } - - public enum ManualSetupEnum - { - A, B, C - } - - public enum IgnoredEnum - { - A, B, C - } - - public class MyClass - { - public StandardEnum Standard { get; set; } - public NumberedEnum Numbered { get; set; } - public FlagsEnum Flags { get; set; } - public NastyEmptyEnum Nasty { get; set; } - public ManualSetupEnum Manual { get; set; } - public IgnoredEnum Ignored { get; set; } - } - - public class MyClassWithCstr - { - public MyClassWithCstr(StandardEnum standard, NumberedEnum numbered, FlagsEnum flags, ManualSetupEnum manual, IgnoredEnum ignored) - { - this.Standard = standard; - this.Numbered = numbered; - this.Flags = flags; - this.Manual = manual; - this.Ignored = ignored; - } - - public StandardEnum Standard { get; set; } - public NumberedEnum Numbered { get; set; } - public FlagsEnum Flags { get; set; } - public NastyEmptyEnum Nasty { get; set; } - public ManualSetupEnum Manual { get; set; } - public IgnoredEnum Ignored { get; set; } - } - - public class ClassWithNullableEnum - { - public StandardEnum? NullableEnum { get; set; } - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/HashStackTests.cs b/Tynamix.ObjectFiller.TestBCK/HashStackTests.cs deleted file mode 100644 index 26979a4..0000000 --- a/Tynamix.ObjectFiller.TestBCK/HashStackTests.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using Xunit; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class HashStackTests - { - [Fact] - public void HashStack_PushSameItem_ReturnsFalse() - { - var s = new HashStack(); - s.Push(1); - var added = s.Push(1); - - Assert.False(added); - } - - [Fact] - public void HashStack_ContainsTest() - { - var s = new HashStack(); - s.Push(5); - Assert.Equal(true, s.Contains(5)); - } - - [Fact] - public void HashStack_PopWithNoElements_Throws() - { - var s = new HashStack(); - Assert.Throws(()=> s.Pop()); - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/IpAddressPluginTest.cs b/Tynamix.ObjectFiller.TestBCK/IpAddressPluginTest.cs deleted file mode 100644 index fd6562d..0000000 --- a/Tynamix.ObjectFiller.TestBCK/IpAddressPluginTest.cs +++ /dev/null @@ -1,88 +0,0 @@ -namespace ObjectFiller.Test -{ - using System.Security.Policy; - using Tynamix.ObjectFiller; - using Xunit; - - public class IpAddressPluginTest - { - - internal class IpAddressClass - { - public string IpAddress { get; set; } - } - - [Fact] - public void TestIpAddressGenerator() - { - Filler filler = new Filler(); - - filler.Setup() - .OnProperty(x => x.IpAddress).Use(); - - var result = filler.Create(); - - var ipAddresses = result.IpAddress.Split('.'); - - Assert.Collection(ipAddresses, - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255)); - } - - [Fact] - public void TestIpAddressGeneratorWithWrongNumbersAndFirstSegmentMaximumOf10() - { - Filler filler = new Filler(); - - filler.Setup().OnProperty(x => x.IpAddress).Use(new IpAddress(10, 300, 300, 300)); - - var result = filler.Create(); - - var ipAddresses = result.IpAddress.Split('.'); - - Assert.Collection(ipAddresses, - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255)); - } - - [Fact] - public void TestIpAddressGeneratorWithSegmentSetup() - { - Filler filler = new Filler(); - - filler.Setup().OnProperty(x => x.IpAddress).Use(new IpAddress(10, 10, 10, 10)); - - var result = filler.Create(); - - var ipAddresses = result.IpAddress.Split('.'); - - Assert.Collection(ipAddresses, - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10)); - } - - [Fact] - public void TestIpAddressGeneratorWithFirstTwoSegmentSetup() - { - Filler filler = new Filler(); - - filler.Setup().OnProperty(x => x.IpAddress).Use(new IpAddress(10, 10)); - - var result = filler.Create(); - - var ipAddresses = result.IpAddress.Split('.'); - - Assert.Collection(ipAddresses, - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 10), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255), - (s) => Assert.True(int.Parse(s) > 0 && int.Parse(s) <= 255)); - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/LibraryFillingTest.cs b/Tynamix.ObjectFiller.TestBCK/LibraryFillingTest.cs deleted file mode 100644 index ed09df7..0000000 --- a/Tynamix.ObjectFiller.TestBCK/LibraryFillingTest.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System; -using System.Linq; -using Xunit; -using ObjectFiller.Test.TestPoco.Library; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class LibraryFillingTest - { - [Fact] - public void TestFillLibraryWithSimpleTypes() - { - Filler lib = new Filler(); - lib.Setup() - .OnProperty(x => x.Books).IgnoreIt(); - LibraryConstructorWithSimple filledLib = lib.Create(); - - Assert.Null(filledLib.Books); - Assert.NotNull(filledLib); - Assert.NotNull(filledLib.City); - Assert.NotNull(filledLib.Name); - } - - [Fact] - public void TestFillLibraryWithListOfBooks() - { - Filler lib = new Filler(); - lib.Setup() - .OnProperty(x => x.Books).IgnoreIt() - .OnProperty(x => x.Name).IgnoreIt(); - - LibraryConstructorList filledLib = lib.Create(); - - Assert.NotNull(filledLib); - Assert.NotNull(filledLib.Books); - Assert.NotNull(filledLib.Name); - } - - [Fact] - public void TestFillLibraryWithListOfIBooks() - { - Filler lib = new Filler(); - lib.Setup() - .OnProperty(x => x.Books).IgnoreIt() - .OnType().CreateInstanceOf(); - - LibraryConstructorList filledLib = lib.Create(); - - Assert.NotNull(filledLib.Books); - } - - [Fact] - public void TestFillLibraryWithPocoOfABook() - { - Filler lib = new Filler(); - lib.Setup() - .OnProperty(x => x.Books).IgnoreIt(); - - LibraryConstructorPoco filledLib = lib.Create(); - Assert.NotNull(filledLib.Books); - Assert.Equal(1, filledLib.Books.Count); - } - - [Fact] - public void TestFillLibraryWithConfiguredPocoOfABook() - { - Filler lib = new Filler(); - lib.Setup() - .OnProperty(x => x.Books).IgnoreIt() - .SetupFor() - .OnProperty(x => x.Name).Use(() => "ABook"); - - - var l = lib.Create(); - - Assert.Equal("ABook", ((Book)l.Books.ToList()[0]).Name); - - } - - [Fact] - public void TestFillLibraryWithDictionary() - { - Filler lib = new Filler(); - lib.Setup() - .OnType().CreateInstanceOf() - .OnProperty(x => x.Books).IgnoreIt(); - - LibraryConstructorDictionary filledLib = lib.Create(); - Assert.NotNull(filledLib.Books); - } - - [Fact] - public void TestFillLibraryWithDictionaryAndPoco() - { - Filler lib = new Filler(); - lib.Setup() - .OnProperty(x => x.Books).IgnoreIt() - .OnProperty(x => x.Name).IgnoreIt(); - - - LibraryConstructorDictionary filledLib = lib.Create(); - Assert.NotNull(filledLib.Books); - Assert.NotNull(filledLib.Name); - - } - - - public class Person - { - public string Name { get; set; } - public string LastName { get; set; } - public int Age { get; set; } - public DateTime Birthday { get; set; } - } - - public class HelloFiller - { - public void FillPerson() - { - Person person = new Person(); - - Filler pFiller = new Filler(); - Person p = pFiller.Fill(person); - } - } - - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/ListFillingTest.cs b/Tynamix.ObjectFiller.TestBCK/ListFillingTest.cs deleted file mode 100644 index 11d8821..0000000 --- a/Tynamix.ObjectFiller.TestBCK/ListFillingTest.cs +++ /dev/null @@ -1,158 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - using Xunit; -using ObjectFiller.Test.TestPoco.ListTest; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - using ObjectFiller.Test.TestPoco; - - - public class ListFillingTest - { - [Fact] - public void TestFillAllListsExceptArray() - { - Filler eFiller = new Filler(); - eFiller.Setup() - .OnProperty(x => x.EntityArray).IgnoreIt(); - - EntityCollection entity = eFiller.Create(); - - Assert.NotNull(entity); - Assert.NotNull(entity.EntityList); - Assert.NotNull(entity.EntityICollection); - Assert.NotNull(entity.EntityIEnumerable); - Assert.NotNull(entity.EntityIList); - Assert.NotNull(entity.EntityHashset); - - } - - [Fact] - public void TestUseEnumerable() - { - Filler eFiller = new Filler(); - eFiller.Setup() - .ListItemCount(20) - .OnProperty(x => x.EntityICollection, - x => x.EntityIList, x => x.ObservableCollection, - x => x.EntityIEnumerable).IgnoreIt() - .OnProperty(x => x.EntityArray).IgnoreIt() - .SetupFor() - .OnProperty(x => x.Id).Use(Enumerable.Range(1, 22).Select(x => (int)Math.Pow(2, x))); - - EntityCollection ec = eFiller.Create(); - - for (int i = 0; i < ec.EntityList.Count; i++) - { - int lastPowNum = (int)Math.Pow(2, i + 1); - Assert.Equal(lastPowNum, ec.EntityList[i].Id); - } - } - - [Fact] - public void TestFillList() - { - Filler eFiller = new Filler(); - eFiller.Setup() - .OnProperty(ec => ec.EntityArray).Use(GetArray); - EntityCollection entity = eFiller.Create(); - - Assert.NotNull(entity); - Assert.NotNull(entity.EntityList); - Assert.NotNull(entity.EntityICollection); - Assert.NotNull(entity.EntityIEnumerable); - Assert.NotNull(entity.EntityIList); - Assert.NotNull(entity.EntityArray); - Assert.NotNull(entity.EntityHashset); - } - - [Fact] - public void TestIgnoreAllUnknownTypesWithOutException() - { - Filler filler = new Filler(); - filler.Setup().IgnoreAllUnknownTypes(); - var entity = filler.Create(); - Assert.Null(entity.EntityArray); - Assert.NotNull(entity); - Assert.NotNull(entity.EntityList); - Assert.NotNull(entity.EntityICollection); - Assert.NotNull(entity.EntityIEnumerable); - Assert.NotNull(entity.EntityIList); - Assert.NotNull(entity.EntityHashset); - } - - [Fact] - public void TestIgnoreAllUnknownTypesWithException() - { - Filler filler = new Filler(); - Assert.Throws(()=>filler.Create()); - } - - [Fact] - public void GenerateTestDataForASortedList() - { - Filler> filler = new Filler>(); - filler.Setup().OnType().Use(Enumerable.Range(1, 1000)); - var result = filler.Create(10).ToList(); - - Assert.Equal(10, result.Count); - foreach (var sortedList in result) - { - Assert.True(sortedList.Any()); - } - } - - [Fact] - public void GenerateTestDataForASimpleList() - { - Filler> filler = new Filler>(); - filler.Setup().IgnoreAllUnknownTypes(); - var createdList = filler.Create(); - - Assert.True(createdList.Any()); - - foreach (EntityCollection entityCollection in createdList) - { - Assert.True(entityCollection.EntityICollection.Any()); - Assert.True(entityCollection.EntityIEnumerable.Any()); - Assert.True(entityCollection.EntityIList.Any()); - Assert.True(entityCollection.EntityList.Any()); - Assert.NotNull(entityCollection.EntityHashset.Any()); - } - } - - [Fact] - public void GenerateTestDataForADictionary() - { - Filler> filler = new Filler>(); - var result = filler.Create(10).ToList(); - - Assert.Equal(10, result.Count); - foreach (var sortedList in result) - { - Assert.True(sortedList.Any()); - } - } - - [Fact] - public void GenerateDictionaryWithEnumeration() - { - var amountOfEnumValues = Enum.GetValues(typeof(TestEnum)).Length; - var filler = new Filler>(); - var result = filler.Create(); - - Assert.Equal(amountOfEnumValues, result.Count); - } - - private Entity[,] GetArray() - { - Filler of = new Filler(); - var entity = new Entity[,] { { of.Create() } }; - - return entity; - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/LoremIpsumPluginTest.cs b/Tynamix.ObjectFiller.TestBCK/LoremIpsumPluginTest.cs deleted file mode 100644 index 58996ab..0000000 --- a/Tynamix.ObjectFiller.TestBCK/LoremIpsumPluginTest.cs +++ /dev/null @@ -1,97 +0,0 @@ -using System; -using System.Linq; -using Xunit; -using ObjectFiller.Test.TestPoco.Library; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - using System.Collections.Generic; - - - public class LoremIpsumPluginTest - { - - [Fact] - public void Test_With_Many_MinWords_And_Many_MinSentences() - { - Filler book = new Filler(); - book.Setup() - .OnProperty(x => x.ISBN).Use(new Lipsum(LipsumFlavor.InDerFremde, 51, 100, 100)); - - var b = book.Create(); - - Assert.NotNull(b); - } - - [Fact] - public void Test_With_German_Default_Settings() - { - Filler book = new Filler(); - book.Setup() - .OnProperty(x => x.ISBN).Use(new Lipsum(LipsumFlavor.InDerFremde)); - - var b = book.Create(); - - Assert.NotNull(b); - } - - [Fact] - public void Test_With_France_High_Values_Settings() - { - Filler book = new Filler(); - book.Setup() - .OnProperty(x => x.ISBN).Use(new Lipsum(LipsumFlavor.LeMasque, 20, 50, 100, 250, 500)); - - var b = book.Create(); - - Assert.NotNull(b); - } - - [Fact] - public void Test_With_English_Min_Values_Settings() - { - Filler book = new Filler(); - book.Setup() - .OnProperty(x => x.ISBN).Use(new Lipsum(LipsumFlavor.ChildHarold, 1, 1, 1, 1, 1)); - - var b = book.Create(); - - b.ISBN = b.ISBN.Replace("\r\n\r\n", string.Empty); - Assert.NotNull(b); - Assert.Equal(1, b.ISBN.Split('\n').Length); - } - - [Fact] - public void Test_With_LoremIpsum_Seed_Settings() - { - Filler book = new Filler(); - book.Setup() - .OnProperty(x => x.ISBN).Use(new Lipsum(LipsumFlavor.LoremIpsum, 3, 5, 1, 5, 3, 1234)); - - var b = book.Create(); - var b1 = book.Create(); - - Assert.NotNull(b); - Assert.NotNull(b1); - Assert.Equal(b.ISBN, b1.ISBN); - } - - [Fact] - public void LoremIpsum_should_provide_different_data() - { - var alowedDelta = 2; - - var filler = new Filler(); - filler.Setup() - .OnProperty(foo => foo.Description) - .Use(new Lipsum(LipsumFlavor.LoremIpsum)); - - var resultElements = filler.Create(100); - - var groupedResult = resultElements.GroupBy(x => x.Description); - - Assert.Equal((double)100, groupedResult.Count(), alowedDelta); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/ObjectFillerRecursiveTests.cs b/Tynamix.ObjectFiller.TestBCK/ObjectFillerRecursiveTests.cs deleted file mode 100644 index 418ac14..0000000 --- a/Tynamix.ObjectFiller.TestBCK/ObjectFillerRecursiveTests.cs +++ /dev/null @@ -1,188 +0,0 @@ -using System; -using System.Collections.Generic; - using Xunit; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class ObjectFillerRecursiveTests - { - - // ReSharper disable ClassNeverInstantiated.Local - - private class TestParent - { - public TestChild Child { get; set; } - } - - private class TestChild - { - public TestParent Parent { get; set; } - } - - private class TestGrandParent - { - public TestParent SubObject { get; set; } - } - - private class TestEmptyNode - { - public string Value { get; set; } - } - - private class TestSelf - { - public TestSelf Self { get; set; } - - public string Foo { get; set; } - } - - private class TestDuplicate - { - public TestEmptyNode Node1 { get; set; } - public TestEmptyNode Node2 { get; set; } - } - - public class Children - { - public Parent Parent { get; set; } - } - - public class Parent - { - public List Childrens { get; set; } - } - - public class ParentDictionary - { - public Dictionary Childrens { get; set; } - } - - // ReSharper restore ClassNeverInstantiated.Local - - [Fact] - public void RecursiveFill_RecursiveType_ThrowsException() - { - var filler = new Filler(); - filler.Setup().OnCircularReference().ThrowException(); - Assert.Throws(() => filler.Create()); - } - - [Fact] - public void RecursiveFill_WithIgnoredProperties_Succeeds() - { - var filler = new Filler(); - filler.Setup().OnProperty(p => p.Child).IgnoreIt(); - var result = filler.Create(); - - Assert.NotNull(result); - } - - [Fact] - public void RecursiveFill_WithFunc_Succeeds() - { - var filler = new Filler(); - filler.Setup().OnProperty(p => p.Child).Use(() => new TestChild()); - var result = filler.Create(); - - Assert.NotNull(result.Child); - } - - [Fact] - public void RecursiveFill_RecursiveType_Parent_First_Fails() - { - var filler = new Filler(); - filler.Setup().OnCircularReference().ThrowException(); - Assert.Throws(() => filler.Create()); - } - - [Fact] - public void RecursiveFill_RecursiveType_Child_First_Fails() - { - var filler = new Filler(); - filler.Setup().OnCircularReference().ThrowException(); - Assert.Throws(() => filler.Create()); - } - - [Fact] - public void RecursiveFill_DeepRecursiveType_Fails() - { - var filler = new Filler(); - filler.Setup().OnCircularReference().ThrowException(); - Assert.Throws(() => filler.Create()); - - } - - [Fact] - public void RecursiveFill_SelfReferencing_Fails() - { - var filler = new Filler(); - filler.Setup().OnCircularReference().ThrowException(); - Assert.Throws(() => filler.Create()); - } - - [Fact] - public void RecursiveFill_DuplicateProperty_Succeeds() - { - // reason: a filler should not complain if it encounters the same type - // in two separate branches of a type hierarchy - var filler = new Filler(); - var result = filler.Create(); - - Assert.NotNull(result); - } - - [Fact] - public void RecursiveFill_RecursiveType_Parent_First_Succeeds() - { - var filler = new Filler(); - var r = filler.Create(); - Assert.Null(r.Child.Parent.Child); - } - - [Fact] - public void RecursiveFill_RecursiveType_Child_First_Succeeds() - { - var filler = new Filler(); - var r = filler.Create(); - Assert.Null(r.Parent.Child.Parent); - - } - - [Fact] - public void RecursiveFill_DeepRecursiveType_Succeeds() - { - var filler = new Filler(); - var r = filler.Create(); - Assert.Null(r.SubObject.Child.Parent); - } - - [Fact] - public void RecursiveFill_SelfReferencing_Succeeds() - { - var filler = new Filler(); - var r = filler.Create(); - - Assert.Null(r.Self.Self); - } - - [Fact] - public void RecursiveFill_ParentList_Succeeds() - { - var filler = new Filler(); - var r = filler.Create(); - - Assert.Null(r.Childrens[0].Parent.Childrens); - } - - [Fact] - public void RecursiveFill_ParentDictionary_Succeeds() - { - var filler = new Filler(); - var r = filler.Create(); - } - - - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/ObjectFillerTest.cs b/Tynamix.ObjectFiller.TestBCK/ObjectFillerTest.cs deleted file mode 100644 index c335a27..0000000 --- a/Tynamix.ObjectFiller.TestBCK/ObjectFillerTest.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - using Xunit; -using ObjectFiller.Test.TestPoco.Person; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class ObjectFillerTest - { - [Fact] - public void TestFillPerson() - { - Person p = new Person(); - Filler filler = new Filler(); - filler.Setup() - .OnType().CreateInstanceOf
() - .OnType().Use(new MnemonicString(10)) - .OnProperty(person => person.FirstName).Use() - .OnProperty(person => person.LastName).Use(new RandomListItem("Maik", "Tom", "Anton")) - .OnProperty(person => person.Age).Use(() => Tynamix.ObjectFiller.Random.Next(12, 83)) - .SetupFor
() - .OnProperty(x => x.City, x => x.Country).IgnoreIt(); - - Person pFilled = filler.Fill(p); - - Assert.True(new List() { "Maik", "Tom", "Anton" }.Contains(pFilled.LastName)); - } - - - - - [Fact] - public void CreateMultipleInstances() - { - Filler filler = new Filler(); - IEnumerable pList = filler.Create(10); - - Assert.NotNull(pList); - Assert.Equal(10, pList.Count()); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/PatternGeneratorTest.cs b/Tynamix.ObjectFiller.TestBCK/PatternGeneratorTest.cs deleted file mode 100644 index 059f4e0..0000000 --- a/Tynamix.ObjectFiller.TestBCK/PatternGeneratorTest.cs +++ /dev/null @@ -1,287 +0,0 @@ -using System; -using System.Reflection.Emit; -using Xunit; -using System.Text.RegularExpressions; -using System.Collections.Generic; -using ObjectFiller.Test.TestPoco.Person; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class PatternGeneratorTest - { - [Fact] - public void Must_be_able_to_handle_private_setters() - { - var filler = new Filler(); - filler.Setup() - .OnProperty(x => x.NameStyle).DoIt(At.TheEnd).Use(() => NameStyle.FirstNameLastName) - .OnProperty(x => x.WithPrivateSetter); - - - var obj = filler.Create(); - - Assert.NotEqual(0, obj.WithPrivateSetter); - Assert.Equal(123, obj.WithoutSetter); - - Assert.Equal(obj.NameStyle, NameStyle.FirstNameLastName); - } - - [Fact] - public void Must_be_able_to_handle_inheritance_and_sealed() - { - var filler = new Filler(); - var obj = filler.Create(); - - Assert.NotEqual(0, obj.NormalNumber); - Assert.NotEqual(0, obj.OverrideNormalNumber); - Assert.NotEqual(0, obj.SealedOverrideNormalNumber); - } - - [Fact] - public void Must_be_able_to_handle_arrays() - { - var filler = new Filler(); - - //.For(); - var obj = filler.Create(); - - Assert.NotNull(obj.Ints); - Assert.NotNull(obj.Strings); - Assert.NotNull(obj.JaggedStrings); - Assert.NotNull(obj.ThreeJaggedDimensional); - Assert.NotNull(obj.ThreeJaggedPoco); - - } - - [Fact] - public void StringPatternGenerator_A() - { - HashSet chars = new HashSet(); - - var sut = new PatternGenerator("{A}"); - for (int n = 0; n < 10000; n++) - { - var s = sut.GetValue(); - Assert.True(Regex.IsMatch(s, "^[A-Z]$")); - chars.Add(s[0]); - } - - Assert.Equal(26, chars.Count); - } - - [Fact] - public void StringPatternGenerator_A_fixed_len() - { - var sut = new PatternGenerator("x{A:3}x"); - for (int n = 0; n < 10000; n++) - { - var s = sut.GetValue(); - Assert.True(Regex.IsMatch(s, "^x[A-Z]{3}x$")); - } - } - - [Fact] - public void StringPatternGenerator_A_random_len() - { - var sut = new PatternGenerator("x{A:3-6}x"); - for (int n = 0; n < 10000; n++) - { - var s = sut.GetValue(); - Assert.True(Regex.IsMatch(s, "^x[A-Z]{3,6}x$")); - } - } - - [Fact] - public void StringPatternGenerator_a() - { - HashSet chars = new HashSet(); - - var sut = new PatternGenerator("{a}"); - for (int n = 0; n < 10000; n++) - { - var s = sut.GetValue(); - Assert.True(s.Length == 1); - Assert.True(Regex.IsMatch(s, "^[a-z]$")); - chars.Add(s[0]); - } - - Assert.Equal(26, chars.Count); - } - - [Fact] - public void StringPatternGenerator_a_composite() - { - HashSet chars = new HashSet(); - - var sut = new PatternGenerator("a {a}"); - for (int n = 0; n < 10000; n++) - { - var s = sut.GetValue(); - Assert.True(s.Length == 3); - Assert.True(Regex.IsMatch(s, "^a [a-z]$")); - chars.Add(s[2]); - } - - Assert.Equal(26, chars.Count); - } - - [Fact] - public void StringPatternGenerator_aaa() - { - var sut = new PatternGenerator("xcccx"); - for (int n = 0; n < 10000; n++) - { - var s = sut.GetValue(); - Assert.True(s.Length == 5); - Assert.True(Regex.IsMatch(s, "^x[a-z]{3}x$")); - } - } - - [Fact] - public void StringPatternGenerator_N() - { - HashSet chars = new HashSet(); - - var sut = new PatternGenerator("{N}"); - for (int n = 0; n < 10000; n++) - { - var s = sut.GetValue(); - Assert.True(s.Length == 1); - Assert.True(Regex.IsMatch(s, "^[0-9]$")); - chars.Add(s[0]); - } - - Assert.Equal(10, chars.Count); - } - - [Fact] - public void StringPatternGenerator_X() - { - HashSet chars = new HashSet(); - - var sut = new PatternGenerator("{X}"); - for (int n = 0; n < 10000; n++) - { - var s = sut.GetValue(); - Assert.True(s.Length == 1); - Assert.True(Regex.IsMatch(s, "^[0-9A-F]$")); - chars.Add(s[0]); - } - - Assert.Equal(16, chars.Count); - } - - [Fact] - public void StringPatternGenerator_C_simple() - { - var sut = new PatternGenerator("{C}"); - Assert.Equal("1", sut.GetValue()); - Assert.Equal("2", sut.GetValue()); - Assert.Equal("3", sut.GetValue()); - } - - [Fact] - public void StringPatternGenerator_C_with_StartValue() - { - var sut = new PatternGenerator("{C:33}"); - Assert.Equal("33", sut.GetValue()); - Assert.Equal("34", sut.GetValue()); - Assert.Equal("35", sut.GetValue()); - } - - [Fact] - public void StringPatternGenerator_C_with_StartValue_with_Increment() - { - var sut = new PatternGenerator("{C:33,3}"); - Assert.Equal("33", sut.GetValue()); - Assert.Equal("36", sut.GetValue()); - Assert.Equal("39", sut.GetValue()); - } - - [Fact] - public void StringPatternGenerator_C_combination() - { - var sut = new PatternGenerator("_{C}_{C:+11}_{C:110,10}_"); - Assert.Equal("_1_11_110_", sut.GetValue()); - Assert.Equal("_2_12_120_", sut.GetValue()); - Assert.Equal("_3_13_130_", sut.GetValue()); - Assert.Equal("_4_14_140_", sut.GetValue()); - } - - [Fact] - public void StringPatternGenerator_C_startvalue_negative_value() - { - var sut = new PatternGenerator("{C:-3}"); - Assert.Equal("-3", sut.GetValue()); - Assert.Equal("-2", sut.GetValue()); - Assert.Equal("-1", sut.GetValue()); - Assert.Equal("0", sut.GetValue()); - Assert.Equal("1", sut.GetValue()); - Assert.Equal("2", sut.GetValue()); - Assert.Equal("3", sut.GetValue()); - } - - [Fact] - public void StringPatternGenerator_C__startvalue_negative__positive_increment() - { - var sut = new PatternGenerator("{C:-3,+2}"); - Assert.Equal("-3", sut.GetValue()); - Assert.Equal("-1", sut.GetValue()); - Assert.Equal("1", sut.GetValue()); - Assert.Equal("3", sut.GetValue()); - } - - [Fact] - public void StringPatternGenerator_C__startvalue_negative__negative_increment() - { - var sut = new PatternGenerator("{C:-3,-2}"); - Assert.Equal("-3", sut.GetValue()); - Assert.Equal("-5", sut.GetValue()); - Assert.Equal("-7", sut.GetValue()); - } - - } - - public class ClassWithPrivateStuffAbstract - { - public int WithPrivateSetter { get; private set; } - public int WithoutSetter { get { return 123; } } - - public NameStyle NameStyle { get; private set; } - } - - public class ClassWithPrivateStuff : ClassWithPrivateStuffAbstract - { - public string Name { get; set; } - } - - public sealed class ClassWithPrivateStuffSealed : ClassWithPrivateStuff - { - public int Number { get; set; } - } - - public class BaseClass - { - public int NormalNumber { get; set; } - public virtual int OverrideNormalNumber { get; set; } - public virtual int SealedOverrideNormalNumber { get; set; } - } - - public class InheritedClass : BaseClass - { - public override int OverrideNormalNumber { get; set; } - public override sealed int SealedOverrideNormalNumber { get; set; } - } - - public class WithArrays - { - public int[] Ints { get; set; } - public string[] Strings { get; set; } - public string[][] JaggedStrings { get; set; } - public string[][][] ThreeJaggedDimensional { get; set; } - - public Address[][][] ThreeJaggedPoco { get; set; } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/PersonFillingTest.cs b/Tynamix.ObjectFiller.TestBCK/PersonFillingTest.cs deleted file mode 100644 index f543ede..0000000 --- a/Tynamix.ObjectFiller.TestBCK/PersonFillingTest.cs +++ /dev/null @@ -1,241 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - using Xunit; -using ObjectFiller.Test.TestPoco.Person; -using Tynamix.ObjectFiller; -using Random = Tynamix.ObjectFiller.Random; - -namespace ObjectFiller.Test -{ - - public class PersonFillingTest - { - [Fact] - public void TestFillPerson() - { - Filler pFiller = new Filler(); - - pFiller.Setup() - .OnType().CreateInstanceOf
(); - - Person filledPerson = pFiller.Create(); - - Assert.NotNull(filledPerson.Address); - Assert.NotNull(filledPerson.Addresses); - Assert.NotNull(filledPerson.StringToIAddress); - Assert.NotNull(filledPerson.SureNames); - - } - - [Fact] - public void TestFillPersonWithEnumerable() - { - Filler pFiller = new Filler(); - - pFiller.Setup() - .OnType().CreateInstanceOf
() - .OnProperty(x => x.Age).Use(Enumerable.Range(18, 60)); - - - Person filledPerson = pFiller.Create(); - - Assert.NotNull(filledPerson.Address); - Assert.NotNull(filledPerson.Addresses); - Assert.NotNull(filledPerson.StringToIAddress); - Assert.NotNull(filledPerson.SureNames); - - } - - [Fact] - public void TestNameListStringRandomizer() - { - Filler pFiller = new Filler(); - - pFiller.Setup().OnType().CreateInstanceOf
() - .OnProperty(p => p.FirstName).Use(new RealNames(NameStyle.FirstName)) - .OnProperty(p => p.LastName).Use(new RealNames(NameStyle.LastName)); - - Person filledPerson = pFiller.Create(); - - Assert.NotNull(filledPerson.FirstName); - Assert.NotNull(filledPerson.LastName); - - } - - [Fact] - public void TestFirstNameAsConstantLastNameAsRealName() - { - Filler pFiller = new Filler(); - - pFiller.Setup() - .OnType().CreateInstanceOf
() - .OnProperty(p => p.FirstName).Use(() => "John") - .OnProperty(p => p.LastName).Use(new RealNames(NameStyle.LastName)); - - Person filledPerson = pFiller.Create(); - - Assert.NotNull(filledPerson.FirstName); - Assert.Equal("John", filledPerson.FirstName); - Assert.NotNull(filledPerson.LastName); - - } - - [Fact] - public void GeneratePersonWithGivenSetOfNamesAndAges() - { - List names = new List { "Tom", "Maik", "John", "Leo" }; - List ages = new List { 10, 15, 18, 22, 26 }; - - Filler pFiller = new Filler(); - pFiller.Setup() - .OnType().CreateInstanceOf
() - .OnProperty(p => p.FirstName).Use(new RandomListItem(names)) - .OnProperty(p => p.Age).Use(new RandomListItem(ages)); - - var pF = pFiller.Create(); - - Assert.True(names.Contains(pF.FirstName)); - Assert.True(ages.Contains(pF.Age)); - } - - - [Fact] - public void BigComplicated() - { - Filler pFiller = new Filler(); - pFiller.Setup() - .OnType().CreateInstanceOf
() - .OnProperty(p => p.LastName, p => p.FirstName).DoIt(At.TheEnd).Use(new RealNames(NameStyle.FirstName)) - .OnProperty(p => p.Age).Use(() =>Random.Next(10, 32)) - .SetupFor
() - .OnProperty(a => a.City).Use(new MnemonicString(1)) - .OnProperty(a => a.Street).IgnoreIt(); - - var pF = pFiller.Create(); - - Assert.NotNull(pF); - Assert.NotNull(pF.Address); - Assert.Null(pF.Address.Street); - - } - - [Fact] - public void FluentTest() - { - Filler pFiller = new Filler(); - pFiller.Setup() - .OnProperty(x => x.Age).Use(() => 18) - .OnType().CreateInstanceOf
(); - - Person p = pFiller.Create(); - Assert.NotNull(p); - Assert.Equal(18, p.Age); - - } - - [Fact] - public void TestSetupForTypeOverrideSettings() - { - Filler pFiller = new Filler(); - pFiller.Setup() - .OnType().CreateInstanceOf
() - .OnType().Use(() => 1) - .SetupFor
(true); - - Person p = pFiller.Create(); - Assert.Equal(1, p.Age); - Assert.NotEqual(1, p.Address.HouseNumber); - } - - [Fact] - public void TestSetupForTypeWithoutOverrideSettings() - { - Filler pFiller = new Filler(); - pFiller.Setup() - .OnType().CreateInstanceOf
() - .OnType().Use(() => 1) - .SetupFor
(); - - Person p = pFiller.Create(); - Assert.Equal(1, p.Age); - Assert.Equal(1, p.Address.HouseNumber); - } - - [Fact] - public void TestIgnoreAllOfType() - { - Filler pFiller = new Filler(); - pFiller.Setup() - .OnType().CreateInstanceOf
() - .OnType().IgnoreIt() - ; - - Person p = pFiller.Create(); - - Assert.NotNull(p); - Assert.Null(p.FirstName); - Assert.NotNull(p.Address); - Assert.Null(p.Address.City); - } - - [Fact] - public void TestIgnoreAllOfComplexType() - { - Filler pFiller = new Filler(); - pFiller.Setup() - .OnType().CreateInstanceOf
() - .OnType
().IgnoreIt() - .OnType().IgnoreIt(); - - Person p = pFiller.Create(); - - Assert.NotNull(p); - Assert.Null(p.Address); - } - - [Fact] - public void TestIgnoreAllOfTypeDictionary() - { - Filler pFiller = new Filler(); - pFiller.Setup() - .OnType().CreateInstanceOf
() - .OnType
().IgnoreIt() - .OnType().IgnoreIt() - .OnType>().IgnoreIt(); - - Person p = pFiller.Create(); - - Assert.NotNull(p); - Assert.Null(p.Address); - Assert.Null(p.StringToIAddress); - } - - [Fact] - public void TestPropertyOrderDoNameLast() - { - Filler filler = new Filler(); - filler.Setup() - .OnProperty(x => x.Name).DoIt(At.TheEnd).UseDefault(); - - var p = filler.Create(); - - Assert.NotNull(p); - Assert.Equal(3, p.NameCount); - } - - [Fact] - public void TestPropertyOrderDoNameFirst() - { - Filler filler = new Filler(); - filler.Setup() - .OnProperty(x => x.Name).DoIt(At.TheBegin).UseDefault(); - - var p = filler.Create(); - - Assert.NotNull(p); - Assert.Equal(1, p.NameCount); - } - - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/Properties/AssemblyInfo.cs b/Tynamix.ObjectFiller.TestBCK/Properties/AssemblyInfo.cs deleted file mode 100644 index 27be475..0000000 --- a/Tynamix.ObjectFiller.TestBCK/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Xunit; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Tynamix.ObjectFiller.Test")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Tynamix.ObjectFiller.Test")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -[assembly: CollectionBehavior(DisableTestParallelization = true)] diff --git a/Tynamix.ObjectFiller.TestBCK/RandomAccessTest.cs b/Tynamix.ObjectFiller.TestBCK/RandomAccessTest.cs deleted file mode 100644 index daef080..0000000 --- a/Tynamix.ObjectFiller.TestBCK/RandomAccessTest.cs +++ /dev/null @@ -1,46 +0,0 @@ -namespace ObjectFiller.Test -{ - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - - using Xunit; - using Tynamix.ObjectFiller; - - - public class RandomAccessTest - { - [Fact] - public void GetRandomIntOnDifferentThreadsGetsDifferentResults() - { - var numberToGenerate = 1000; - var intRange = new IntRange(1, 10); - var task1 = Task.Factory.StartNew(() => - { - var taskResults = new List(); - for (int i = 0; i < numberToGenerate; ++i) - { - taskResults.Add(Randomizer.Create(intRange)); - } - return taskResults; - }, - TaskCreationOptions.LongRunning - ); - var task2 = Task.Factory.StartNew(() => - { - var taskResults = new List(); - for (int i = 0; i < numberToGenerate; ++i) - { - taskResults.Add(Randomizer.Create(intRange)); - } - return taskResults; - }, - TaskCreationOptions.LongRunning - ); - var results = Task.WhenAll(task1, task2).Result; - var firstResults = results[0].Sum(); - var secondResults = results[1].Sum(); - Assert.NotEqual(firstResults, secondResults); - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/RandomizerPluginFake.cs b/Tynamix.ObjectFiller.TestBCK/RandomizerPluginFake.cs deleted file mode 100644 index 21504a7..0000000 --- a/Tynamix.ObjectFiller.TestBCK/RandomizerPluginFake.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - public class FakeRandomizerPlugin : IRandomizerPlugin - { - public Func OnGetValue; - - public T ReturnValue { get; set; } - - public FakeRandomizerPlugin() - { - } - - public FakeRandomizerPlugin(T returnValue) - { - ReturnValue = returnValue; - } - - public T GetValue() - { - if (OnGetValue != null) - { - return OnGetValue(); - } - - return ReturnValue; - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/RandomizerTest.cs b/Tynamix.ObjectFiller.TestBCK/RandomizerTest.cs deleted file mode 100644 index 7cd23d5..0000000 --- a/Tynamix.ObjectFiller.TestBCK/RandomizerTest.cs +++ /dev/null @@ -1,98 +0,0 @@ -namespace ObjectFiller.Test -{ - using System; - using System.Collections.Generic; - using System.Linq; - - using Xunit; - - using ObjectFiller.Test.TestPoco.Library; - using ObjectFiller.Test.TestPoco.Person; - - using Tynamix.ObjectFiller; - - - public class RandomizerTest - { - [Fact] - public void GetRandomInt() - { - var number = Randomizer.Create(new IntRange(1, 2)); - - Assert.True(number == 1 || number == 2); - } - - [Fact] - public void FillAllAddressProperties() - { - var a = Randomizer
.Create(); - Assert.NotNull(a.City); - Assert.NotNull(a.Country); - Assert.NotEqual(0, a.HouseNumber); - Assert.NotNull(a.PostalCode); - Assert.NotNull(a.Street); - } - - [Fact] - public void TryingToCreateAnObjectWithAnInterfaceShallFailAndHaveAnInnerexception() - { - try - { - Randomizer.Create(); - } - catch (InvalidOperationException ex) - { - Assert.NotNull(ex.InnerException); - return; - } - - // Should not reach this! - Assert.False(true); - } - - [Fact] - public void RandomizerCreatesAListOfRandomItemsIfNeeded() - { - int amount = 5; - - IEnumerable result = Randomizer.Create(amount); - - Assert.Equal(amount, result.Count()); - } - - [Fact] - public void RandomizerCreatesAListOfRandomItemsWithAPlugin() - { - int amount = 5; - - IEnumerable result = Randomizer.Create(new IntRange(1,1), amount); - - Assert.Equal(amount, result.Count()); - Assert.True(result.Count(x => x == 1) == amount); - } - - [Fact] - public void RandomizerCreatesAListOfItemBasedOnAFactory() - { - int amount = 5; - - IEnumerable result = Randomizer.Create(amount, () => 1); - - Assert.Equal(amount, result.Count()); - Assert.True(result.Count(x => x == 1) == amount); - } - - [Fact] - public void RandomizerCreatesAListOfItemBasedOnASetup() - { - int amount = 5; - - var setup = FillerSetup.Create
().OnType().Use(1).Result; - - IEnumerable
result = Randomizer
.Create(setup, amount); - - Assert.Equal(amount, result.Count()); - Assert.True(result.Count(x => x.HouseNumber == 1) == amount); - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/RangePluginTest.cs b/Tynamix.ObjectFiller.TestBCK/RangePluginTest.cs deleted file mode 100644 index ae1d69d..0000000 --- a/Tynamix.ObjectFiller.TestBCK/RangePluginTest.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System.Linq; - using Xunit; -using ObjectFiller.Test.TestPoco; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class RangePluginTest - { - [Fact] - public void TestIntRangeWithMaxValue() - { - int max = 100; - Filler> filler = new Filler>(); - - filler.Setup().OnType().Use(new IntRange(max)); - var sl = filler.Create(); - - Assert.NotNull(sl); - Assert.NotNull(sl.ChildList); - Assert.True(sl.ChildList.All(x => x < 100)); - Assert.False(sl.ChildList.All(x => x == sl.ChildList[0])); - } - - [Fact] - public void TestIntRangeWithMinMaxValue() - { - int max = 100; - int min = 50; - Filler> filler = new Filler>(); - - filler.Setup().OnType().Use(new IntRange(min, max)); - var sl = filler.Create(); - - Assert.NotNull(sl); - Assert.NotNull(sl.ChildList); - Assert.True(sl.ChildList.All(x => x >= min && x <= max)); - } - - [Fact] - public void TestFloateRangeWithMinMaxValue() - { - int max = 100; - int min = 50; - Filler> filler = new Filler>(); - - filler.Setup().OnType().Use(new FloatRange(min, max)); - var sl = filler.Create(); - - Assert.NotNull(sl); - Assert.NotNull(sl.ChildList); - Assert.True(sl.ChildList.All(x => x >= min && x <= max)); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/RealNamePluginTest.cs b/Tynamix.ObjectFiller.TestBCK/RealNamePluginTest.cs deleted file mode 100644 index 230e50f..0000000 --- a/Tynamix.ObjectFiller.TestBCK/RealNamePluginTest.cs +++ /dev/null @@ -1,67 +0,0 @@ - using Xunit; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class RealNamePluginTest - { - [Fact] - public void TestRealNameFirstNameOnly() - { - Filler filler = new Filler(); - filler.Setup() - .OnProperty(x => x.Name).Use(new RealNames(NameStyle.FirstName)); - - LibraryFillingTest.Person p = filler.Create(); - - Assert.NotNull(p); - Assert.NotNull(p.Name); - Assert.False(p.Name.Contains(" ")); - } - - [Fact] - public void TestRealNameLastNameOnly() - { - Filler filler = new Filler(); - filler.Setup() - .OnProperty(x => x.Name).Use(new RealNames(NameStyle.LastName)); - - LibraryFillingTest.Person p = filler.Create(); - - Assert.NotNull(p); - Assert.NotNull(p.Name); - Assert.False(p.Name.Contains(" ")); - } - - [Fact] - public void TestRealNameFirstNameLastName() - { - Filler filler = new Filler(); - filler.Setup() - .OnProperty(x => x.Name).Use(new RealNames(NameStyle.FirstNameLastName)); - - LibraryFillingTest.Person p = filler.Create(); - - Assert.NotNull(p); - Assert.NotNull(p.Name); - Assert.True(p.Name.Contains(" ")); - Assert.Equal(2, p.Name.Split(' ').Length); - } - - [Fact] - public void TestRealNameLastNameFirstName() - { - Filler filler = new Filler(); - filler.Setup() - .OnProperty(x => x.Name).Use(new RealNames(NameStyle.LastNameFirstName)); - - LibraryFillingTest.Person p = filler.Create(); - - Assert.NotNull(p); - Assert.NotNull(p.Name); - Assert.True(p.Name.Contains(" ")); - Assert.Equal(2, p.Name.Split(' ').Length); - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/SaveFillerSetupTest.cs b/Tynamix.ObjectFiller.TestBCK/SaveFillerSetupTest.cs deleted file mode 100644 index c719e30..0000000 --- a/Tynamix.ObjectFiller.TestBCK/SaveFillerSetupTest.cs +++ /dev/null @@ -1,75 +0,0 @@ -using System; - using Xunit; -using ObjectFiller.Test.TestPoco.Person; -using Tynamix.ObjectFiller; - -namespace ObjectFiller.Test -{ - - public class SaveFillerSetupTest - { - - public FillerSetup GetFillerSetup() - { - - Filler filler = new Filler(); - return filler.Setup() - .OnType().CreateInstanceOf
() - .OnProperty(x => x.Age).Use(new IntRange(18, 35)) - .OnProperty(x => x.FirstName).Use(new RealNames(NameStyle.FirstName)) - .OnProperty(x => x.LastName).Use(new RealNames(NameStyle.LastName)) - .SetupFor
() - .OnProperty(x => x.HouseNumber).Use(new IntRange(1, 100)) - .Result; - - } - - [Fact] - public void UseSavedFillerDefaultSetup() - { - Filler filler = new Filler(); - filler.Setup(GetFillerSetup()); - - Person p = filler.Create(); - - Assert.True(p.Age < 35 && p.Age >= 18); - Assert.True(p.Address.HouseNumber < 100 && p.Age >= 1); - } - - - [Fact] - public void UseSavedFillerSetupWithExtensions() - { - var dateNow = DateTime.Now; - Filler filler = new Filler(); - filler.Setup(GetFillerSetup()) - .OnProperty(x => x.Birthdate).Use(() => dateNow); - - Person p = filler.Create(); - - Assert.True(p.Age < 35 && p.Age >= 18); - Assert.True(p.Address.HouseNumber < 100 && p.Age >= 1); - Assert.Equal(p.Birthdate, dateNow); - - } - - [Fact] - public void UseSavedFillerSetupWithOverrides() - { - Filler filler = new Filler(); - filler.Setup(GetFillerSetup()) - .OnProperty(x => x.Age).Use(() => 1000) - .SetupFor
() - .OnProperty(x => x.HouseNumber).Use(() => 9999); - - Person p = filler.Create(); - - Assert.Equal(p.Age, 1000); - Assert.Equal(p.Address.HouseNumber, 9999); - - } - - - - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/SequenceGeneratorTest.cs b/Tynamix.ObjectFiller.TestBCK/SequenceGeneratorTest.cs deleted file mode 100644 index e3bb872..0000000 --- a/Tynamix.ObjectFiller.TestBCK/SequenceGeneratorTest.cs +++ /dev/null @@ -1,331 +0,0 @@ -using System; -using Xunit; -using Tynamix.ObjectFiller; -// ReSharper disable RedundantCast - -namespace ObjectFiller.Test -{ - public class SequenceGeneratorTest - { - [Fact] - public void SequenceGeneratorSByte__Should_work() - { - var generator = new SequenceGeneratorSByte(); - Assert.Equal((SByte)0, generator.GetValue()); - Assert.Equal((SByte)1, generator.GetValue()); - Assert.Equal((SByte)2, generator.GetValue()); - - generator = new SequenceGeneratorSByte { From = 3 }; - Assert.Equal((SByte)3, generator.GetValue()); - Assert.Equal((SByte)4, generator.GetValue()); - Assert.Equal((SByte)5, generator.GetValue()); - - generator = new SequenceGeneratorSByte { From = 3, Step = 3 }; - Assert.Equal((SByte)3, generator.GetValue()); - Assert.Equal((SByte)6, generator.GetValue()); - Assert.Equal((SByte)9, generator.GetValue()); - - generator = new SequenceGeneratorSByte { From = 3, Step = -3 }; - Assert.Equal((SByte)3, generator.GetValue()); - Assert.Equal((SByte)0, generator.GetValue()); - Assert.Equal((SByte)(-3), generator.GetValue()); - - generator = new SequenceGeneratorSByte { From = SByte.MaxValue - 1 }; - Assert.Equal((SByte)(SByte.MaxValue - 1), generator.GetValue()); - Assert.Equal((SByte)(SByte.MaxValue - 0), generator.GetValue()); - Assert.Equal((SByte)(SByte.MinValue + 0), generator.GetValue()); - Assert.Equal((SByte)(SByte.MinValue + 1), generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorInt16__Should_work() - { - var generator = new SequenceGeneratorInt16(); - Assert.Equal((Int16)0, generator.GetValue()); - Assert.Equal((Int16)1, generator.GetValue()); - Assert.Equal((Int16)2, generator.GetValue()); - - generator = new SequenceGeneratorInt16 { From = 3 }; - Assert.Equal((Int16)3, generator.GetValue()); - Assert.Equal((Int16)4, generator.GetValue()); - Assert.Equal((Int16)5, generator.GetValue()); - - generator = new SequenceGeneratorInt16 { From = 3, Step = 3 }; - Assert.Equal((Int16)3, generator.GetValue()); - Assert.Equal((Int16)6, generator.GetValue()); - Assert.Equal((Int16)9, generator.GetValue()); - - generator = new SequenceGeneratorInt16 { From = 3, Step = -3 }; - Assert.Equal((Int16)3, generator.GetValue()); - Assert.Equal((Int16)0, generator.GetValue()); - Assert.Equal((Int16)(-3), generator.GetValue()); - - generator = new SequenceGeneratorInt16 { From = Int16.MaxValue - 1 }; - Assert.Equal((Int16)(Int16.MaxValue - 1), generator.GetValue()); - Assert.Equal((Int16)(Int16.MaxValue - 0), generator.GetValue()); - Assert.Equal((Int16)(Int16.MinValue + 0), generator.GetValue()); - Assert.Equal((Int16)(Int16.MinValue + 1), generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorInt32__Should_work() - { - var generator = new SequenceGeneratorInt32(); - Assert.Equal((Int32)0, generator.GetValue()); - Assert.Equal((Int32)1, generator.GetValue()); - Assert.Equal((Int32)2, generator.GetValue()); - - generator = new SequenceGeneratorInt32 { From = 3 }; - Assert.Equal((Int32)3, generator.GetValue()); - Assert.Equal((Int32)4, generator.GetValue()); - Assert.Equal((Int32)5, generator.GetValue()); - - generator = new SequenceGeneratorInt32 { From = 3, Step = 3 }; - Assert.Equal((Int32)3, generator.GetValue()); - Assert.Equal((Int32)6, generator.GetValue()); - Assert.Equal((Int32)9, generator.GetValue()); - - generator = new SequenceGeneratorInt32 { From = 3, Step = -3 }; - Assert.Equal((Int32)3, generator.GetValue()); - Assert.Equal((Int32)0, generator.GetValue()); - Assert.Equal((Int32)(-3), generator.GetValue()); - - generator = new SequenceGeneratorInt32 { From = Int32.MaxValue - 1 }; - Assert.Equal((Int32)(Int32.MaxValue - 1), generator.GetValue()); - Assert.Equal((Int32)(Int32.MaxValue - 0), generator.GetValue()); - Assert.Equal((Int32)(Int32.MinValue + 0), generator.GetValue()); - Assert.Equal((Int32)(Int32.MinValue + 1), generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorInt64__Should_work() - { - var generator = new SequenceGeneratorInt64(); - Assert.Equal((Int64)0, generator.GetValue()); - Assert.Equal((Int64)1, generator.GetValue()); - Assert.Equal((Int64)2, generator.GetValue()); - - generator = new SequenceGeneratorInt64 { From = 3 }; - Assert.Equal((Int64)3, generator.GetValue()); - Assert.Equal((Int64)4, generator.GetValue()); - Assert.Equal((Int64)5, generator.GetValue()); - - generator = new SequenceGeneratorInt64 { From = 3, Step = 3 }; - Assert.Equal((Int64)3, generator.GetValue()); - Assert.Equal((Int64)6, generator.GetValue()); - Assert.Equal((Int64)9, generator.GetValue()); - - generator = new SequenceGeneratorInt64 { From = 3, Step = -3 }; - Assert.Equal((Int64)3, generator.GetValue()); - Assert.Equal((Int64)0, generator.GetValue()); - Assert.Equal((Int64)(-3), generator.GetValue()); - - generator = new SequenceGeneratorInt64 { From = Int64.MaxValue - 1 }; - Assert.Equal((Int64)(Int64.MaxValue - 1), generator.GetValue()); - Assert.Equal((Int64)(Int64.MaxValue - 0), generator.GetValue()); - Assert.Equal((Int64)(Int64.MinValue + 0), generator.GetValue()); - Assert.Equal((Int64)(Int64.MinValue + 1), generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorUInt16__Should_work() - { - var generator = new SequenceGeneratorUInt16(); - Assert.Equal((UInt16)0, generator.GetValue()); - Assert.Equal((UInt16)1, generator.GetValue()); - Assert.Equal((UInt16)2, generator.GetValue()); - - generator = new SequenceGeneratorUInt16 { From = 3 }; - Assert.Equal((UInt16)3, generator.GetValue()); - Assert.Equal((UInt16)4, generator.GetValue()); - Assert.Equal((UInt16)5, generator.GetValue()); - - generator = new SequenceGeneratorUInt16 { From = 3, Step = 3 }; - Assert.Equal((UInt16)3, generator.GetValue()); - Assert.Equal((UInt16)6, generator.GetValue()); - Assert.Equal((UInt16)9, generator.GetValue()); - - generator = new SequenceGeneratorUInt16 { From = UInt16.MaxValue - 1 }; - Assert.Equal((UInt16)(UInt16.MaxValue - 1), generator.GetValue()); - Assert.Equal((UInt16)(UInt16.MaxValue - 0), generator.GetValue()); - Assert.Equal((UInt16)(UInt16.MinValue + 0), generator.GetValue()); - Assert.Equal((UInt16)(UInt16.MinValue + 1), generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorByte__Should_work() - { - var generator = new SequenceGeneratorByte(); - Assert.Equal((Byte)0, generator.GetValue()); - Assert.Equal((Byte)1, generator.GetValue()); - Assert.Equal((Byte)2, generator.GetValue()); - - generator = new SequenceGeneratorByte { From = 3 }; - Assert.Equal((Byte)3, generator.GetValue()); - Assert.Equal((Byte)4, generator.GetValue()); - Assert.Equal((Byte)5, generator.GetValue()); - - generator = new SequenceGeneratorByte { From = 3, Step = 3 }; - Assert.Equal((Byte)3, generator.GetValue()); - Assert.Equal((Byte)6, generator.GetValue()); - Assert.Equal((Byte)9, generator.GetValue()); - - generator = new SequenceGeneratorByte { From = Byte.MaxValue - 1 }; - Assert.Equal((Byte)(Byte.MaxValue - 1), generator.GetValue()); - Assert.Equal((Byte)(Byte.MaxValue - 0), generator.GetValue()); - Assert.Equal((Byte)(Byte.MinValue + 0), generator.GetValue()); - Assert.Equal((Byte)(Byte.MinValue + 1), generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorUInt32__Should_work() - { - var generator = new SequenceGeneratorUInt32(); - Assert.Equal((UInt32)0, generator.GetValue()); - Assert.Equal((UInt32)1, generator.GetValue()); - Assert.Equal((UInt32)2, generator.GetValue()); - - generator = new SequenceGeneratorUInt32 { From = 3 }; - Assert.Equal((UInt32)3, generator.GetValue()); - Assert.Equal((UInt32)4, generator.GetValue()); - Assert.Equal((UInt32)5, generator.GetValue()); - - generator = new SequenceGeneratorUInt32 { From = 3, Step = 3 }; - Assert.Equal((UInt32)3, generator.GetValue()); - Assert.Equal((UInt32)6, generator.GetValue()); - Assert.Equal((UInt32)9, generator.GetValue()); - - generator = new SequenceGeneratorUInt32 { From = UInt32.MaxValue - 1 }; - Assert.Equal((UInt32)(UInt32.MaxValue - 1), generator.GetValue()); - Assert.Equal((UInt32)(UInt32.MaxValue - 0), generator.GetValue()); - Assert.Equal((UInt32)(UInt32.MinValue + 0), generator.GetValue()); - Assert.Equal((UInt32)(UInt32.MinValue + 1), generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorUInt64__Should_work() - { - var generator = new SequenceGeneratorUInt64(); - Assert.Equal((UInt64)0, generator.GetValue()); - Assert.Equal((UInt64)1, generator.GetValue()); - Assert.Equal((UInt64)2, generator.GetValue()); - - generator = new SequenceGeneratorUInt64 { From = 3 }; - Assert.Equal((UInt64)3, generator.GetValue()); - Assert.Equal((UInt64)4, generator.GetValue()); - Assert.Equal((UInt64)5, generator.GetValue()); - - generator = new SequenceGeneratorUInt64 { From = 3, Step = 3 }; - Assert.Equal((UInt64)3, generator.GetValue()); - Assert.Equal((UInt64)6, generator.GetValue()); - Assert.Equal((UInt64)9, generator.GetValue()); - - generator = new SequenceGeneratorUInt64 { From = UInt64.MaxValue - 1 }; - Assert.Equal((UInt64)(UInt64.MaxValue - 1), generator.GetValue()); - Assert.Equal((UInt64)(UInt64.MaxValue - 0), generator.GetValue()); - Assert.Equal((UInt64)(UInt64.MinValue + 0), generator.GetValue()); - Assert.Equal((UInt64)(UInt64.MinValue + 1), generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorChar__Should_work() - { - var generator = new SequenceGeneratorChar(); - Assert.Equal((Char)0, generator.GetValue()); - Assert.Equal((Char)1, generator.GetValue()); - Assert.Equal((Char)2, generator.GetValue()); - - generator = new SequenceGeneratorChar { From = 'A' }; - Assert.Equal((Char)'A', generator.GetValue()); - Assert.Equal((Char)'B', generator.GetValue()); - Assert.Equal((Char)'C', generator.GetValue()); - - generator = new SequenceGeneratorChar { From = 'A', Step = (Char)3 }; - Assert.Equal((Char)'A', generator.GetValue()); - Assert.Equal((Char)'D', generator.GetValue()); - Assert.Equal((Char)'G', generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorSingle__Should_work() - { - var generator = new SequenceGeneratorSingle(); - Assert.Equal((Single)0, generator.GetValue()); - Assert.Equal((Single)1, generator.GetValue()); - Assert.Equal((Single)2, generator.GetValue()); - - generator = new SequenceGeneratorSingle { From = 3 }; - Assert.Equal((Single)3, generator.GetValue()); - Assert.Equal((Single)4, generator.GetValue()); - Assert.Equal((Single)5, generator.GetValue()); - - generator = new SequenceGeneratorSingle { From = 3, Step = 3 }; - Assert.Equal((Single)3, generator.GetValue()); - Assert.Equal((Single)6, generator.GetValue()); - Assert.Equal((Single)9, generator.GetValue()); - - generator = new SequenceGeneratorSingle { From = 3, Step = -3 }; - Assert.Equal((Single)3, generator.GetValue()); - Assert.Equal((Single)0, generator.GetValue()); - Assert.Equal((Single)(-3), generator.GetValue()); - - generator = new SequenceGeneratorSingle { From = Single.MaxValue - 1 }; - Assert.Equal((Single)(Single.MaxValue - 1), generator.GetValue()); - Assert.Equal((Single)(Single.MaxValue - 0), generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorDouble__Should_work() - { - var generator = new SequenceGeneratorDouble(); - Assert.Equal((Double)0, generator.GetValue()); - Assert.Equal((Double)1, generator.GetValue()); - Assert.Equal((Double)2, generator.GetValue()); - - generator = new SequenceGeneratorDouble { From = 3 }; - Assert.Equal((Double)3, generator.GetValue()); - Assert.Equal((Double)4, generator.GetValue()); - Assert.Equal((Double)5, generator.GetValue()); - - generator = new SequenceGeneratorDouble { From = 3, Step = 3 }; - Assert.Equal((Double)3, generator.GetValue()); - Assert.Equal((Double)6, generator.GetValue()); - Assert.Equal((Double)9, generator.GetValue()); - - generator = new SequenceGeneratorDouble { From = 3, Step = -3 }; - Assert.Equal((Double)3, generator.GetValue()); - Assert.Equal((Double)0, generator.GetValue()); - Assert.Equal((Double)(-3), generator.GetValue()); - - generator = new SequenceGeneratorDouble { From = Double.MaxValue - 1 }; - Assert.Equal((Double)(Double.MaxValue - 1), generator.GetValue()); - Assert.Equal((Double)(Double.MaxValue - 0), generator.GetValue()); - } - - [Fact] - public void SequenceGeneratorDateTime__Should_work() - { - var generator = new SequenceGeneratorDateTime(); - Assert.Equal(new DateTime().AddDays(0), generator.GetValue()); - Assert.Equal(new DateTime().AddDays(1), generator.GetValue()); - Assert.Equal(new DateTime().AddDays(2), generator.GetValue()); - - var date = DateTime.Now.Date; - generator = new SequenceGeneratorDateTime { From = date }; - Assert.Equal(date.AddDays(0), generator.GetValue()); - Assert.Equal(date.AddDays(1), generator.GetValue()); - Assert.Equal(date.AddDays(2), generator.GetValue()); - - generator = new SequenceGeneratorDateTime { From = date, Step = TimeSpan.FromDays(3) }; - Assert.Equal(date.AddDays(0), generator.GetValue()); - Assert.Equal(date.AddDays(3), generator.GetValue()); - Assert.Equal(date.AddDays(6), generator.GetValue()); - - generator = new SequenceGeneratorDateTime { From = date, Step = TimeSpan.FromDays(-3) }; - Assert.Equal(date.AddDays(0), generator.GetValue()); - Assert.Equal(date.AddDays(-3), generator.GetValue()); - Assert.Equal(date.AddDays(-6), generator.GetValue()); - } - - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/SetupTests.cs b/Tynamix.ObjectFiller.TestBCK/SetupTests.cs deleted file mode 100644 index 8a0cc16..0000000 --- a/Tynamix.ObjectFiller.TestBCK/SetupTests.cs +++ /dev/null @@ -1,135 +0,0 @@ -using System; -using Xunit; - -namespace ObjectFiller.Test -{ - using Tynamix.ObjectFiller; - - - public class SetupTests - { - public class Parent - { - public Child Child { get; set; } - - public int? SomeId { get; set; } - } - - public class Child - { - public int IntValue { get; set; } - - public string StringValue { get; set; } - } - - [Fact] - public void ExplicitSetupShallJustFillPropertiesWhichAreSetUpEvenInSubtypes() - { - Filler filler = new Filler(); - filler.Setup(true) - .SetupFor().OnProperty(x => x.IntValue).Use(new IntRange(1, 20)); - - var parent = filler.Create(); - - Assert.NotNull(parent); - Assert.NotNull(parent.Child); - Assert.Null(parent.SomeId); - Assert.InRange(parent.Child.IntValue, 1, 20); - Assert.Null(parent.Child.StringValue); - } - - [Fact] - public void ExplicitSetupShallJustFillPropertiesWhichAreSetUpAndNoInstanceShallCreateForSubTypesIfNotSetup() - { - Filler filler = new Filler(); - filler.Setup(true) - .OnProperty(x => x.SomeId).Use(new IntRange(1, 20)); - - var parent = filler.Create(); - - Assert.NotNull(parent); - Assert.Null(parent.Child); - Assert.NotNull(parent.SomeId); - } - - - - [Fact] - public void RandomizerCreatesObjectsBasedOnPreviouseSetups() - { - int givenValue = Randomizer.Create(); - - var childFiller = new Filler(); - var childSetup = childFiller.Setup().OnProperty(x => x.IntValue).Use(givenValue).Result; - - var child = Randomizer.Create(childSetup); - Assert.Equal(givenValue, child.IntValue); - } - - [Fact] - public void UseSetupsAgainForPropertyConfigurations() - { - int givenValue = Randomizer.Create(); - - var childFiller = new Filler(); - var childSetup = childFiller.Setup().OnProperty(x => x.IntValue).Use(givenValue).Result; - - var parentFiller = new Filler(); - parentFiller.Setup().OnProperty(x => x.Child).Use(childSetup); - - var parent = parentFiller.Create(); - Assert.Equal(givenValue, parent.Child.IntValue); - } - - [Fact] - public void UseSetupsAgainForTypeConfigurations() - { - int givenValue = Randomizer.Create(); - - var childFiller = new Filler(); - var childSetup = childFiller.Setup().OnProperty(x => x.IntValue).Use(givenValue).Result; - - var parentFiller = new Filler(); - parentFiller.Setup().OnType().Use(childSetup); - - var parent = parentFiller.Create(); - Assert.Equal(givenValue, parent.Child.IntValue); - } - - [Fact] - public void UseSetupsAgain() - { - int givenValue = Randomizer.Create(); - - var firstChildFiller = new Filler(); - var childSetup = firstChildFiller.Setup().OnProperty(x => x.IntValue).Use(givenValue).Result; - - var secondChildFiller = new Filler(); - secondChildFiller.Setup(childSetup); - - var child = secondChildFiller.Create(); - - Assert.Equal(givenValue, child.IntValue); - } - - [Fact] - public void SetupsCanBeCreatedWithFactoryMethod() - { - var childSetup = FillerSetup.Create().OnProperty(x => x.IntValue).Use(42).Result; - - var child = Randomizer.Create(childSetup); - Assert.Equal(42, child.IntValue); - } - - [Fact] - public void SetupsCanBeCreatedWithFactoryMethodBasedOnExistingSetupManager() - { - var childSetup = FillerSetup.Create().OnProperty(x => x.IntValue).Use(42).Result; - childSetup = FillerSetup.Create(childSetup).OnProperty(x => x.StringValue).Use("Juchu").Result; - - var child = Randomizer.Create(childSetup); - Assert.Equal(42, child.IntValue); - Assert.Equal("Juchu", child.StringValue); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/StreetNamesPluginTest.cs b/Tynamix.ObjectFiller.TestBCK/StreetNamesPluginTest.cs deleted file mode 100644 index 6b3f398..0000000 --- a/Tynamix.ObjectFiller.TestBCK/StreetNamesPluginTest.cs +++ /dev/null @@ -1,39 +0,0 @@ - using Xunit; - -namespace ObjectFiller.Test -{ - using Tynamix.ObjectFiller; - - - public class StreetNamesPluginTest - { - [Fact] - public void RandomNameIsReturned() - { - var sut = new StreetName(City.Dresden); - var value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); - - - sut = new StreetName(City.NewYork); - value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); - - sut = new StreetName(City.London); - value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); - - sut = new StreetName(City.Moscow); - value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); - - sut = new StreetName(City.Paris); - value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); - - sut = new StreetName(City.Tokyo); - value = sut.GetValue(); - Assert.False(string.IsNullOrEmpty(value)); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/TestIgnoranceOfInheritance.cs b/Tynamix.ObjectFiller.TestBCK/TestIgnoranceOfInheritance.cs deleted file mode 100644 index ad38718..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestIgnoranceOfInheritance.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace ObjectFiller.Test -{ - using ObjectFiller.Test.TestPoco.Person; - - using Xunit; - using Tynamix.ObjectFiller; - - public class Student : Person - { - public string Class { get; set; } - } - - public class TestIgnoranceOfInheritance - { - [Fact] - public void IfIgnoreInheritanceIsSetToTrueTheNameOfTheStudentShouldBeNull() - { - Filler filler = new Filler(); - filler.Setup().IgnoreInheritance(); - var student = filler.Create(); - - Assert.Null(student.FirstName); - Assert.NotNull(student.Class); - } - - [Fact] - public void IfIgnoreInheritanceIsSetToFalseTheNameOfTheStudentShouldNotBeNull() - { - Filler filler = new Filler(); - filler.Setup() - .OnType().CreateInstanceOf
(); - var student = filler.Create(); - - Assert.NotNull(student.FirstName); - Assert.NotNull(student.Class); - } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Book.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Book.cs deleted file mode 100644 index 9b87334..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Book.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Runtime.CompilerServices; - -namespace ObjectFiller.Test.TestPoco.Library -{ - public class Book : IBook - { - public Book(string name, string isbn) - { - Name = name; - ISBN = isbn; - } - - public string Name { get; set; } - - public string ISBN { get; set; } - - public string Description { get; set; } - - public double Price { get; set; } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/IBook.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/IBook.cs deleted file mode 100644 index cd3f263..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/IBook.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace ObjectFiller.Test.TestPoco.Library -{ - public interface IBook - { - - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Library.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Library.cs deleted file mode 100644 index 9d5f2ca..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/Library.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace ObjectFiller.Test.TestPoco.Library -{ - public abstract class Library - { - public ICollection Books { get; set; } - public string Name { get; set; } - public string City { get; set; } - public int CountOfBooks { get; set; } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorDictionary.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorDictionary.cs deleted file mode 100644 index 6f3c29e..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorDictionary.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System.Collections.Generic; - -namespace ObjectFiller.Test.TestPoco.Library -{ - public class LibraryConstructorDictionary : Library - { - public LibraryConstructorDictionary(Dictionary dictionary) - { - Books = new List(); - foreach (IBook book in dictionary.Keys) - { - Book b = (Book)book; - b.Name = dictionary[book]; - - Books.Add(b); - } - } - - public LibraryConstructorDictionary(Dictionary dictionary, string libName) - { - Name = libName; - Books = new List(); - foreach (Book book in dictionary.Keys) - { - book.Name = dictionary[book]; - - Books.Add(book); - } - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorList.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorList.cs deleted file mode 100644 index 809cbbc..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorList.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Collections.Generic; - -namespace ObjectFiller.Test.TestPoco.Library -{ - public class LibraryConstructorList : Library - { - public LibraryConstructorList(List books, string name) - { - Books = new List(books); - Name = name; - } - - public LibraryConstructorList(List books) - { - Books = books; - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorPoco.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorPoco.cs deleted file mode 100644 index cb301ff..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorPoco.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System.Collections.Generic; - -namespace ObjectFiller.Test.TestPoco.Library -{ - public class LibraryConstructorPoco : Library - { - public LibraryConstructorPoco(Book book) - { - Books = new List(); - Books.Add(book); - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorWithSimple.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorWithSimple.cs deleted file mode 100644 index 4dff373..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Library/LibraryConstructorWithSimple.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace ObjectFiller.Test.TestPoco.Library -{ - public class LibraryConstructorWithSimple : Library - { - public LibraryConstructorWithSimple(string name, string city, int countOfBooks) - { - City = city; - CountOfBooks = countOfBooks; - Name = name; - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/Entity.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/Entity.cs deleted file mode 100644 index d72342f..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/Entity.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace ObjectFiller.Test.TestPoco.ListTest -{ - public class Entity - { - public string Name { get; set; } - - public int Id { get; set; } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/EntityCollection.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/EntityCollection.cs deleted file mode 100644 index 6eaae07..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/ListTest/EntityCollection.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.Collections.Generic; -using System.Collections.ObjectModel; - -namespace ObjectFiller.Test.TestPoco.ListTest -{ - public class EntityCollection - { - public List EntityList { get; set; } - - public IEnumerable EntityIEnumerable { get; set; } - - public ICollection EntityICollection { get; set; } - - public ObservableCollection ObservableCollection { get; set; } - - public IList EntityIList { get; set; } - - public HashSet EntityHashset { get; set; } - - public Entity[,] EntityArray { get; set; } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Address.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Address.cs deleted file mode 100644 index 2553f6d..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Address.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace ObjectFiller.Test.TestPoco.Person -{ - public class Address : IAddress - { - public string Street { get; set; } - - public string PostalCode { get; set; } - - public string City { get; set; } - - public string Country { get; set; } - - public int HouseNumber { get; set; } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/IAddress.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/IAddress.cs deleted file mode 100644 index fc35102..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/IAddress.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace ObjectFiller.Test.TestPoco.Person -{ - public interface IAddress - { - - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/OrderedPersonProperties.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/OrderedPersonProperties.cs deleted file mode 100644 index 7b52c7e..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/OrderedPersonProperties.cs +++ /dev/null @@ -1,63 +0,0 @@ -namespace ObjectFiller.Test.TestPoco.Person -{ - public class OrderedPersonProperties - { - private int _currentCount = 0; - private string _name; - private int _age; - private string _lastName; - private int _nameCount; - private int _ageCount; - private int _lastNameCount; - - public string Name - { - get { return _name; } - set - { - _name = value; - _currentCount++; - _nameCount = _currentCount; - } - } - - public int Age - { - get { return _age; } - set - { - _age = value; - - _currentCount++; - _ageCount = _currentCount; - } - } - - public string LastName - { - get { return _lastName; } - set - { - _lastName = value; - _currentCount++; - _lastNameCount = _currentCount; - } - } - - - public int NameCount - { - get { return _nameCount; } - } - - public int AgeCount - { - get { return _ageCount; } - } - - public int LastNameCount - { - get { return _lastNameCount; } - } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Person.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Person.cs deleted file mode 100644 index d74e46b..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/Person/Person.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace ObjectFiller.Test.TestPoco.Person -{ - public class Person - { - public string FirstName { get; set; } - - public string LastName { get; private set; } - - public IList SureNames { get; set; } - - public int Age { get; set; } - - public DateTime Birthdate { get; set; } - - public Address Address { get; set; } - - public string Title { get; set; } - - public Dictionary StringToIAddress { get; set; } - - public IList Addresses { get; set; } - - public ICollection AddressCollection { get; set; } - - public Dictionary> StringToListOfAddress { get; set; } - } -} diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/SimpleList.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/SimpleList.cs deleted file mode 100644 index 4294aa7..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/SimpleList.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System.Collections.Generic; - -namespace ObjectFiller.Test.TestPoco -{ - public class SimpleList - { - public List ChildList { get; set; } - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/TestPoco/TestEnum.cs b/Tynamix.ObjectFiller.TestBCK/TestPoco/TestEnum.cs deleted file mode 100644 index 446be83..0000000 --- a/Tynamix.ObjectFiller.TestBCK/TestPoco/TestEnum.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace ObjectFiller.Test.TestPoco -{ - using System; - - [Flags] - public enum TestEnum - { - ValueOne, - ValueTwo, - ValueThree, - ValueFour - } -} \ No newline at end of file diff --git a/Tynamix.ObjectFiller.TestBCK/Tynamix.ObjectFiller.Test.csproj b/Tynamix.ObjectFiller.TestBCK/Tynamix.ObjectFiller.Test.csproj deleted file mode 100644 index a3f421d..0000000 --- a/Tynamix.ObjectFiller.TestBCK/Tynamix.ObjectFiller.Test.csproj +++ /dev/null @@ -1,38 +0,0 @@ - - - - ObjectFiller.Test Class Library - Roman - dnx451 - Tynamix.ObjectFiller.Test - Tynamix.ObjectFiller.Test - true - false - false - false - false - false - false - - - - - - - - - - - - - - - $(DefineConstants);NET4X - - - - - - - - diff --git a/Tynamix.ObjectFiller/Properties/AssemblyInfo.cs b/Tynamix.ObjectFiller/Properties/AssemblyInfo.cs index d5a1674..5b6e565 100644 --- a/Tynamix.ObjectFiller/Properties/AssemblyInfo.cs +++ b/Tynamix.ObjectFiller/Properties/AssemblyInfo.cs @@ -6,11 +6,11 @@ // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Tynamix.ObjectFiller")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("The Tynamix ObjectFiller.NET fills the properties of your objects with customized random data. Use it for unittests, prototyping and whereever you need some random testdata.")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Tynamix.ObjectFiller")] -[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyCopyright("Copyright © 2015-2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/Tynamix.ObjectFiller/Tynamix.ObjectFiller.csproj b/Tynamix.ObjectFiller/Tynamix.ObjectFiller.csproj index c3b07da..8b62209 100644 --- a/Tynamix.ObjectFiller/Tynamix.ObjectFiller.csproj +++ b/Tynamix.ObjectFiller/Tynamix.ObjectFiller.csproj @@ -9,10 +9,12 @@ Tynamix.ObjectFiller Tynamix.ObjectFiller objectfiller;tynamix;test;testdata;prototyp;prototyping;unittest;design;designviewmodel;generator;random;data;randomdata;testing;poco;lorem;ipsum;fakedata;fake;faker - -1.5.2 + The Tynamix ObjectFiller.NET fills the properties of your objects with customized random data. Use it for unittests, prototyping and whereever you need some random testdata. + -1.5.3 * It is now possible to do an explicit setup (just fill properties which are configured in Filler Setup) * IpAddress string plugin added * Switched to .NET Core 1.0 +* Moved to VS 2017 * Bug fixes -1.5.0 @@ -144,6 +146,11 @@ false false false + 1.5.3.0 + 1.5.3.0 + 1.5.3 + False + False @@ -176,6 +183,102 @@ $(DefineConstants);NETSTD + + bin\Debug\net40\Tynamix.ObjectFiller.xml + + + + bin\Release\net40\Tynamix.ObjectFiller.xml + + + + bin\Debug\net45\Tynamix.ObjectFiller.xml + + + + bin\Debug\net35\Tynamix.ObjectFiller.xml + + + + bin\Release\net45\Tynamix.ObjectFiller.xml + + + + bin\Release\net35\Tynamix.ObjectFiller.xml + + + + bin\Release\netstandard1.0\Tynamix.ObjectFiller.xml + + + + bin\Debug\netstandard1.0\Tynamix.ObjectFiller.xml + + + + bin\x86\Release\net35\Tynamix.ObjectFiller.xml + + + + bin\x86\Release\net40\Tynamix.ObjectFiller.xml + + + + bin\x86\Release\net45\Tynamix.ObjectFiller.xml + + + + bin\x64\Release\net35\Tynamix.ObjectFiller.xml + + + + bin\x64\Release\net45\Tynamix.ObjectFiller.xml + + + + bin\x64\Release\net40\Tynamix.ObjectFiller.xml + + + + bin\x86\Debug\net35\Tynamix.ObjectFiller.xml + + + + bin\x86\Debug\net40\Tynamix.ObjectFiller.xml + + + + bin\x86\Debug\net45\Tynamix.ObjectFiller.xml + + + + bin\x64\Debug\net35\Tynamix.ObjectFiller.xml + + + + bin\x64\Debug\net45\Tynamix.ObjectFiller.xml + + + + bin\x64\Debug\net40\Tynamix.ObjectFiller.xml + + + + bin\x86\Debug\netstandard1.0\Tynamix.ObjectFiller.xml + + + + bin\x64\Debug\netstandard1.0\Tynamix.ObjectFiller.xml + + + + bin\x86\Release\netstandard1.0\Tynamix.ObjectFiller.xml + + + + bin\x64\Release\netstandard1.0\Tynamix.ObjectFiller.xml + +