public void Should_DisableOne() { var mapEventActivationFlags = MapEventActivationFlags.All().Disable(MapEventType.Click); Assert.NotEmpty(mapEventActivationFlags.EnabledEvents); Assert.DoesNotContain(MapEventType.Click.ToString(), mapEventActivationFlags.EnabledEvents); }
public void Should_EnableOne() { var mapEventActivationFlags = MapEventActivationFlags.None().Enable(MapEventType.Click); Assert.Single(mapEventActivationFlags.EnabledEvents); Assert.Equal(mapEventActivationFlags.EnabledEvents.First(), MapEventType.Click.ToString()); }
public void Should_HaveEverything_Enabled() { var mapEventActivationFlags = MapEventActivationFlags.All(); Assert.NotEmpty(mapEventActivationFlags.EnabledEvents); }
public void Should_HaveEverything_Disabled() { var mapEventActivationFlags = MapEventActivationFlags.None(); Assert.Empty(mapEventActivationFlags.EnabledEvents); }