Exemplo n.º 1
0
        public void Surfaces_CreateRenderTargetInvalidDimensions_ThrowsException()
        {
            var systemComponents = Substitute.For <ISystemComponents>();
            var surfaceManager   = Substitute.For <IGpuSurfaceManager>();
            var properties       = Substitute.For <IStartupPropertiesCache>();

            ISurfaces surfaces = new Surfaces(properties, surfaceManager, systemComponents);

            Assert.Throws <Yak2DException>(() => { surfaces.CreateRenderTarget(0, 0); });
        }