示例#1
0
        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");
        }
示例#2
0
        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")));
        }
示例#3
0
        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");
        }
示例#4
0
 /// <inheritdoc/>
 public bool Equals(IAlignSelf other)
 {
     return(string.Equals(this.Class, other.Class));
 }