public void OnFullHDAndSmaller_LeavesDefault_Correctly() { // Arrange this.underTest = JustifyContent.Is.OnFullHDAndSmaller(JustifyContentOption.Center); // Act var underTestClass = underTest.Class; // Assert underTestClass.Should().NotBeNullOrWhiteSpace(); underTestClass.Split(' ').Should() .HaveCount(5) .And .OnlyHaveUniqueItems() .And .HaveElementAt(0, "justify-content-center") .And .HaveElementAt(1, "justify-content-sm-center") .And .HaveElementAt(2, "justify-content-md-center") .And .HaveElementAt(3, "justify-content-lg-center") .And .HaveElementAt(4, "justify-content-xl-center"); }
public void GetClass_SpaceAround_Correctly() { // Arrange this.underTest = JustifyContent.SpaceAround; // Act var underTestClass = underTest.Class; // Assert underTestClass.Should().NotBeNullOrWhiteSpace(); underTestClass.Split(' ').Should() .HaveCount(5) .And .OnlyHaveUniqueItems() .And .Match(x => x.All(v => v.StartsWith("justify-content") && v.EndsWith("-around"))); }
public void OnFullHD_SetsValue_Correctly() { // Arrange this.underTest = JustifyContent.Is.OnFullHD(JustifyContentOption.Center); // Act var underTestClass = underTest.Class; // Assert underTestClass.Should().NotBeNullOrWhiteSpace(); underTestClass.Split(' ').Should() .HaveCount(5) .And .OnlyHaveUniqueItems() .And .HaveElementAt(4, "justify-content-xl-center"); }
public void Constructor_Default_Start() { // Arrange this.underTest = new FluentJustifyContent(); // Act var underTestClass = underTest.Class; // Assert underTestClass.Should().NotBeNullOrWhiteSpace(); underTestClass.Split(' ').Should() .HaveCount(5) .And .OnlyHaveUniqueItems() .And .Match(x => x.All(v => v.StartsWith("justify-content") && v.EndsWith("-start"))); }
/// <inheritdoc/> public bool Equals(IJustifyContent other) { return(string.Equals(this.Class, other.Class)); }