public void Backend_SchoolCalendarBackendHelper_SetDefault_Valid_Data_Should_Pass() { // Arrange var data = new SchoolCalendarModel(); var expect = false; // Act var result = SchoolCalendarBackendHelper.SetDefault(data); // Reset DataSourceBackend.Instance.Reset(); // Assert Assert.AreEqual(expect, result.Modified, TestContext.TestName); }
public void Backend_SchoolCalendarBackendHelper_SetDefault_Null_Data_Should_Fail() { // Arrange var data = new SchoolCalendarModel(); data = null; var expect = data; // Act var result = SchoolCalendarBackendHelper.SetDefault(data); // Reset DataSourceBackend.Instance.Reset(); // Assert Assert.AreEqual(expect, result, TestContext.TestName); }