public void OnFullHDAndSmaller_LeavesDefault_Correctly() { // Arrange this.underTest = AlignSelf.Is.OnFullHDAndSmaller(AlignSelfOption.Start); // Act var underTestClass = underTest.Class; // Assert underTestClass.Should().NotBeNullOrWhiteSpace(); underTestClass.Split(' ').Should() .HaveCount(5) .And .OnlyHaveUniqueItems() .And .HaveElementAt(0, "align-self-start") .And .HaveElementAt(1, "align-self-sm-start") .And .HaveElementAt(2, "align-self-md-start") .And .HaveElementAt(3, "align-self-lg-start") .And .HaveElementAt(4, "align-self-xl-start"); }
public void GetClass_AlignSelf_Start_Correctly() { // Arrange this.underTest = AlignSelf.Start; // Act var underTestClass = underTest.Class; // Assert underTestClass.Should().NotBeNullOrWhiteSpace(); underTestClass.Split(' ').Should() .HaveCount(5) .And .OnlyHaveUniqueItems() .And .Match(x => x.All(v => v.StartsWith("align-self") && v.EndsWith("-start"))); }
public void OnFullHD_SetsValue_Correctly() { // Arrange this.underTest = AlignSelf.Is.OnFullHD(AlignSelfOption.Start); // Act var underTestClass = underTest.Class; // Assert underTestClass.Should().NotBeNullOrWhiteSpace(); underTestClass.Split(' ').Should() .HaveCount(5) .And .OnlyHaveUniqueItems() .And .HaveElementAt(4, "align-self-xl-start"); }
/// <inheritdoc/> public bool Equals(IAlignSelf other) { return(string.Equals(this.Class, other.Class)); }