public void EmptyNestGetter() { var nest = new Nest(); nest.GetNested <Egg>(); nest.Remove <Egg>(); }
public void EggRemoveEvent() { var nest = new Nest(); var egg = new TestEgg(); var flag = false; egg.Knock += args => flag = args.Type == NestEggEventType.Removed; nest.Add(egg); nest.Remove(egg); Assert.True(flag); }
public void EmptyNestRemoveError2() { var nest = new Nest(); Assert.Throws <NullRefNestException>(() => nest.Remove(null)); }
public void EmptyNestRemoveError() { var nest = new Nest(); Assert.Throws <ContainNestException>(() => nest.Remove(new Egg())); }