aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/DataStore/DataStore_TST.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/DataStore/DataStore_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/DataStore/DataStore_TST.cs
index 4a7d55e1e..1428aa210 100644
--- a/Software/Visual_Studio/Tango.UnitTesting/DataStore/DataStore_TST.cs
+++ b/Software/Visual_Studio/Tango.UnitTesting/DataStore/DataStore_TST.cs
@@ -10,6 +10,7 @@ using Tango.PMR.Embroidery;
using Tango.DataStore;
using Tango.DataStore.Lite;
using Tango.Core.IO;
+using Tango.DataStore.EF;
namespace Tango.UnitTesting.DataStore
{
@@ -21,7 +22,18 @@ namespace Tango.UnitTesting.DataStore
public void LiteDB_DataStore_Working()
{
var tempFile = TemporaryManager.Default.CreateImaginaryFile();
- IDataStoreManager manager = new LiteDBDataStoreManager(tempFile);
+ Run_Test(new LiteDBDataStoreManager(tempFile));
+ tempFile.Delete();
+ }
+
+ [TestMethod]
+ public void EF_DataStore_Working()
+ {
+ Run_Test(new EFDataStoreManager());
+ }
+
+ private void Run_Test(IDataStoreManager manager)
+ {
IDataStoreCollection collection = manager.GetCollection("TEST");
{
@@ -76,7 +88,6 @@ namespace Tango.UnitTesting.DataStore
Assert.IsTrue(collection.Count() == 0);
manager.Dispose();
- tempFile.Delete();
}
}
}