Beispiel #1
0
        public void Surfaces_LoadTexturePathNullOrEmpty_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.GetSurfaceDimensions(null); });
        }