diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting')
| -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); + } + } } } |
