public virtual void Has_correct_default_value() { if (!_defaultValue.HasValue) { throw new IgnoreException("No DefaultValue available"); } Assert.That(Game, HasThisProperty.EqualTo(_defaultValue.Value)); }
public void Is_valid_with_IGraphicsDeviceService() { var service = new MockGraphicsDeviceService(); Game.Services.AddService(typeof(IGraphicsDeviceService), service); Assert.That(Game, HasThisProperty.SameAs(service.GraphicsDevice)); }