public void CreatesOneWarningWhenOneDifferentCasingInstance() { // Arrange var records = new List <YearlyData>() { new YearlyData { ProductName = "Comp" }, new YearlyData { ProductName = "comp" }, new YearlyData { ProductName = "Non-Comp" }, new YearlyData { ProductName = "Non-Comp" }, }; // Act var result = _target.FindDifferentCasing(new Defects(), records); // Assert Assert.That(result.Warnings.Count, Is.EqualTo(1)); Assert.That(result.Warnings[0], Is.EqualTo("Found 1 cases where one record product name is the same name but with different case to another record product name.")); }