Пример #1
0
        public void MarkDataDirty_throws_for_component_with_no_fields()
        {
            var component = new ComponentWithNoFields.Component();

            Assert.Throws <InvalidOperationException>(() =>
            {
                component.IsDataDirty(0);
            });
            Assert.Throws <InvalidOperationException>(() =>
            {
                component.IsDataDirty(100);
            });
        }
Пример #2
0
        public void IsDataDirty_returns_false_for_component_with_no_fields()
        {
            var component = new ComponentWithNoFields.Component();

            Assert.IsFalse(component.IsDataDirty());
        }