public void EmptyOrNotEmpty() { List <string> models = SampleMethod.GetModels(); Assert.NotEmpty(models); Assert.Empty(new List <int>()); }
public void NullOrNotNull() { List <string> models = SampleMethod.GetModels(); Assert.NotNull(models); Assert.Null(null); }
public void ContainOrDoesNotContains() { string brand = SampleMethod.GetBrand(); List <string> models = SampleMethod.GetModels(); Assert.Contains("agen", brand); Assert.DoesNotContain("skoda", brand); Assert.Contains(models, item => item.Equals("Golf", StringComparison.OrdinalIgnoreCase)); }