public void HasDifferencesReturnsTrue() { var customDiffResult = new CustomDiffResult { //Improve: Mock CustomDiffResultItem? Differences = new List <CustomDiffResultItem> { new CustomDiffResultItem(0, 1) } }; Assert.True(customDiffResult.HasDifferences); }
public void HasDifferencesReturnsFalse() { var customDiffResult = new CustomDiffResult(); // First asserts when Differences list hasn't been initialized/is null Assert.False(customDiffResult.HasDifferences); //Improve: Mock CustomDiffResultItem? customDiffResult.Differences = new List <CustomDiffResultItem>(); // Then when it has been initialized but is empty Assert.False(customDiffResult.HasDifferences); }