コード例 #1
0
        public void MarkDataDirty_throws_for_component_with_no_fields()
        {
            var component = new Empty.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 Empty.Component();

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