public void DefaultTest() { // Arrange TechincalSupportResource resource1 = new TechincalSupportResource(); TechincalSupportResource resource2; // Act resource2 = SaveTester <TechincalSupportResource> .StartSaveTest(resource1); // Arranges Assert.AreEqual((resource1).Description, (resource2).Description); Assert.AreEqual((resource1).Count, (resource2).Count); Assert.AreEqual((resource1).Frequency, (resource2).Frequency); Assert.AreEqual((resource1).Ram, (resource2).Ram); Assert.AreEqual((resource1).Vram, (resource2).Vram); }
public void CustomTest() { // Arrange TechincalSupportResource resource1 = new TechincalSupportResource() { Count = 100, Description = "Калькулятор", Frequency = 100, Ram = 10, Vram = 10 }; TechincalSupportResource resource2; // Act resource2 = SaveTester <TechincalSupportResource> .StartSaveTest(resource1); // Arranges Assert.AreEqual((resource1).Description, (resource2).Description); Assert.AreEqual((resource1).Count, (resource2).Count); Assert.AreEqual((resource1).Frequency, (resource2).Frequency); Assert.AreEqual((resource1).Ram, (resource2).Ram); Assert.AreEqual((resource1).Vram, (resource2).Vram); }