Ejemplo n.º 1
0
            public static TestRegistryEntry CreateUnmodified(out string initialName, out string initialIcon)
            {
                var result = new TestRegistryEntry();

                initialName = result.Name;
                initialIcon = result.Icon;
                result.SaveChanges();
                return(result);
            }
Ejemplo n.º 2
0
        public void SetNullOrWhiteSpaceNameWhenNotAcceptedThrows(string value)
        {
            var testEntry = new TestRegistryEntry();

            Assert.Throws <InvalidOperationException>(() => testEntry.Name = value);
        }
Ejemplo n.º 3
0
        public void NewEntityRegistryEntryIsUntracked()
        {
            var testEntry = new TestRegistryEntry();

            Assert.False(testEntry.IsTracked);
        }
Ejemplo n.º 4
0
        public void NewEntityRegistryEntryHasPendingChanges()
        {
            var testEntry = new TestRegistryEntry();

            Assert.IsTrue(testEntry.HasPendingChanges);
        }