aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2019-12-22 11:27:51 +0200
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2019-12-22 11:27:51 +0200
commit8c3ab6389c3ba0d5bfefc151cd6718016ea9cf44 (patch)
treee280a4df15077f02f9b9efd972a3350929db428a /Software/Visual_Studio/Tango.UnitTesting
parentd0ad477ecc3b4de354aee900e1b5335bc31ab103 (diff)
parentcd670d0404673efd095ae2baec1873b916c49c81 (diff)
downloadTango-8c3ab6389c3ba0d5bfefc151cd6718016ea9cf44.tar.gz
Tango-8c3ab6389c3ba0d5bfefc151cd6718016ea9cf44.zip
MERGE
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/BL/DTO_TST.cs12
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);
+ }
+ }
}
}