Пример #1
0
        void WithUninitializedIntegerData_ShouldNotBeValid()
        {
            var data = new IntegerData();

            data.IsValid().Should().BeFalse();
        }
Пример #2
0
        void WithNullIntegerData_ShouldNotBeValid()
        {
            IntegerData data = (long?)null;

            data.IsValid().Should().BeFalse();
        }
Пример #3
0
        void WithValidIntegerData_ShouldBeValid()
        {
            var data = new IntegerData(42);

            data.IsValid().Should().BeTrue();
        }