Exemplo n.º 1
0
 public virtual void Has_correct_default_value()
 {
     if (!_defaultValue.HasValue)
     {
         throw new IgnoreException("No DefaultValue available");
     }
     Assert.That(Game, HasThisProperty.EqualTo(_defaultValue.Value));
 }
Exemplo n.º 2
0
                public void Is_valid_with_IGraphicsDeviceService()
                {
                    var service = new MockGraphicsDeviceService();

                    Game.Services.AddService(typeof(IGraphicsDeviceService), service);

                    Assert.That(Game, HasThisProperty.SameAs(service.GraphicsDevice));
                }