aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-20 21:34:50 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-20 21:34:50 +0200
commit76cdf188e28544cd5056c30f35d77590d9a79cae (patch)
treee83b12220517378e4499dc47c6261f8862f37f46 /Software/Visual_Studio/Tango.UnitTesting
parent5cb75f4b026a7842171369f58f5aba1c9678f60f (diff)
downloadTango-76cdf188e28544cd5056c30f35d77590d9a79cae.tar.gz
Tango-76cdf188e28544cd5056c30f35d77590d9a79cae.zip
Improvements to ActionLogs.
Implemented ActionLogs for hw comparison.
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);
+ }
+ }
}
}