예제 #1
0
            public void ConstructorWithValue_ShouldBeSet()
            {
                // arrange
                var sut = new ClearableValue <int>(Fixture.Create <int>());

                // act
                // assert
                sut.Should().BeSetVariant(because: "{0} is created using constructor with value parameter and should be treated as 'set'", sut);
            }
예제 #2
0
            public void ParameterlessConstructor_ShouldBeNoAction()
            {
                // arrange
                var sut = new ClearableValue <int>();

                // act
                // assert
                sut.Should().BeNoActionVariant(because: "{0} is created using parameterless constructor and should be treated as 'noAction'", sut);
            }