private void SaveVersion(Int32 version) { ClientVersionManager CVM = new ClientVersionManager(TestSetUp.ClientVersionFileName); CVM.SetVersion(TestSetUp.bynTest, version); Assert.AreEqual(version, CVM.GetVersion(TestSetUp.bynTest), "Версии файлов не зафиксировались!"); }
[Test] public void TestEmptyFileVersion() { ClientVersionManager CVM = new ClientVersionManager(TestSetUp.ClientVersionFileName); Assert.AreEqual(0, CVM.GetVersion("unexistsFile")); }