예제 #1
0
        public void Argument_WithNameAndValue()
        {
            var expectedName  = "Test";
            var expectedValue = Dates.February(4, 2000);

            var target = Verify.Argument(expectedName, expectedValue);

            target.Argument.Name.Should().Be(expectedName);
            target.Argument.Value.Should().Be(expectedValue);
        }
예제 #2
0
        public void Ctor_WithNameAndValue()
        {
            var expectedName  = "Test";
            var expectedValue = Dates.February(1, 1970);

            var target = new Argument <Date>(expectedName, expectedValue);

            target.Name.Should().Be(expectedName);
            target.Value.Should().Be(expectedValue);
        }
예제 #3
0
        public void February_WithDayYear()
        {
            var expectedDay  = 10;
            var expectedYear = 2013;

            var target = Dates.February(expectedDay, expectedYear);

            target.Day.Should().Be(expectedDay);
            target.Year.Should().Be(expectedYear);
            target.Month.Should().Be(Months.February);
        }
예제 #4
0
 public void February_IsValid()
 {
     Dates.February().Month.Should().Be(Months.February);
 }