Unit тестирование
12
-
Upload
agilefellow -
Category
Documents
-
view
543 -
download
5
description
Transcript of Unit тестирование
Добавил баг
Обнаружилбаг
Время t
[TestClass] public class DemoTest { [TestMethod] public void TestSubstring() { // Arrange String str = "0123456"; // Act String result = str.Substring(2, 3); // Assert Assert.AreEqual("234", result); } }
1 2
Тестовая среда
Рабочая среда
1 2
Дублер
1
2Interface
Дублер
1 2
Inversion of Control (IoC)