diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-20 21:34:50 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-20 21:34:50 +0200 |
| commit | 76cdf188e28544cd5056c30f35d77590d9a79cae (patch) | |
| tree | e83b12220517378e4499dc47c6261f8862f37f46 /Software/Visual_Studio/Tango.UnitTesting/BL | |
| parent | 5cb75f4b026a7842171369f58f5aba1c9678f60f (diff) | |
| download | Tango-76cdf188e28544cd5056c30f35d77590d9a79cae.tar.gz Tango-76cdf188e28544cd5056c30f35d77590d9a79cae.zip | |
Improvements to ActionLogs.
Implemented ActionLogs for hw comparison.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/BL')
| -rw-r--r-- | Software/Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs index 58a05ee83..a574f7ea0 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs +++ b/Software/Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs @@ -38,5 +38,17 @@ namespace Tango.UnitTesting.BL Assert.IsTrue(configDTO.Equals(config)); } } + + [TestMethod] + public void DTOPropertyAttribute_Is_Working() + { + using (ObservablesContext db = ObservablesContext.CreateDefault()) + { + var hwBlower = db.HardwareBlowers.Include(x => x.HardwareBlowerType).First(); + var dto = HardwareBlowerDTO.FromObservable(hwBlower); + + Assert.AreEqual(dto.HardwareBlowerTypeDescription, hwBlower.HardwareBlowerType.Description); + } + } } } |
