Example #1
0
            public void ConstructorWithValue_ShouldBeUpdate()
            {
                // arrange
                var sut = new EditableValue <int>(Fixture.Create <int>());

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

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