diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-01 20:21:40 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-01 20:21:40 +0300 |
| commit | 6735203163f95e9210c63a506d30894b4622f301 (patch) | |
| tree | 384eec973d7fe03381b83e3a1ca3322fd575ec66 /Software/Visual_Studio/Tango.UnitTesting | |
| parent | 9abee60d7f07068c5f07c3e44f7aa1e8049d97ef (diff) | |
| download | Tango-6735203163f95e9210c63a506d30894b4622f301.tar.gz Tango-6735203163f95e9210c63a506d30894b4622f301.zip | |
Working on twine color catalog.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting')
| -rw-r--r-- | Software/Visual_Studio/Tango.UnitTesting/ColorCatalogs_TST.cs | 33 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/ColorCatalogs_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/ColorCatalogs_TST.cs new file mode 100644 index 000000000..927f40a45 --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/ColorCatalogs_TST.cs @@ -0,0 +1,33 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.BL; +using Tango.BL.Catalogs; +using Tango.Logging; + +namespace Tango.UnitTesting +{ + [TestClass] + [TestCategory("Color Catalogs")] + public class ColorCatalogs_TST + { + [TestMethod] + public void Load_And_Display_Twine_Catalog() + { + var console = Helper.InitializeLogging(true); + + LogManager.Default.Log("Loading Twine Catalog..."); + + using (var db = ObservablesContext.CreateDefault()) + { + var catalog = CatalogLoader.LoadCatalog(BL.Enumerations.ColorSpaces.Twine, db); + LogManager.Default.Log(catalog.ToJsonString()); + } + + console.WaitForConsoleExit().Wait(); + } + } +} diff --git a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj index a0034f874..0060b9058 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj +++ b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj @@ -90,6 +90,7 @@ <Compile Include="..\Versioning\Core.cs"> <Link>Core.cs</Link> </Compile> + <Compile Include="ColorCatalogs_TST.cs" /> <Compile Include="DependencyInjection_TST.cs" /> <Compile Include="Logging_TST.cs" /> <Compile Include="MachineStudio_TST.cs" /> |
