Example #1
0
        public void TogglingVisibilityOnShownDrawableEntityHidesIt()
        {
            var drawable = new DrawableEntity();

            drawable.ToggleVisibility();
            Assert.IsFalse(drawable.IsVisible);
        }
Example #2
0
        public void TogglingVisibilityOnHiddenDrawableEntityShowsIt()
        {
            var drawable = new DrawableEntity {
                IsVisible = false
            };

            drawable.ToggleVisibility();
            Assert.IsTrue(drawable.IsVisible);
        }
        public void AddVisibleDrawableEntity()
        {
            var drawable = new DrawableEntity {
                IsVisible = false
            };

            drawable.OnDraw <DrawTest>();
            drawable.ToggleVisibility();
            Assert.IsTrue(drawable.IsVisible);
        }
Example #4
0
		public void TogglingVisibilityOnShownDrawableEntityHidesIt()
		{
			var drawable = new DrawableEntity();
			drawable.ToggleVisibility();
			Assert.IsFalse(drawable.IsVisible);
		}
Example #5
0
		public void TogglingVisibilityOnHiddenDrawableEntityShowsIt()
		{
			var drawable = new DrawableEntity { IsVisible = false };
			drawable.ToggleVisibility();
			Assert.IsTrue(drawable.IsVisible);
		}
 public void AddVisibleDrawableEntity()
 {
     var drawable = new DrawableEntity { IsVisible = false };
     drawable.OnDraw<DrawTest>();
     drawable.ToggleVisibility();
     Assert.IsTrue(drawable.IsVisible);
 }