Exemplo n.º 1
0
        public void Surfaces_CreateRgbaFromDataArraySizeAndDimensionMisMatch_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.CreateRgbaFromData(10, 10, new Vector4[90]); });
        }