Exemple #1
0
        public void PropertyContext_IsVolatile_Found_Test()
        {
            var target = new PropertyContext(null);

            target.SetProperty("Test", 1, PropertyTypeOptions.Volatile);

            const bool expected = true;
            var        actual   = target.IsVolatile("Test");

            actual.Should().Be(expected);
        }
Exemple #2
0
        public void PropertyContext_IsVolatile_NotFound_Test()
        {
            var target = new PropertyContext(null);

            target.SetProperty("Test", 1);

            const bool expected = false;
            var        actual   = target.IsVolatile("Tester");

            actual.Should().Be(expected);
        }
Exemple #3
0
        public void IsVolatile_False_Fact()
        {
            var fake = new FakeEntity(1, "Fact");

            var ctx = new PropertyContext(fake);

            ctx.SetProperty(FactEnum.Fact1, "Nothing");

            var result = ctx.IsVolatile("Fact1");

            result.Should().BeFalse();
        }