Exemplo n.º 1
0
        public void CannotPreviewContentTypeIfNoPreviewerIsAvailable()
        {
            var contentViewer = new MockContentViewer();

            Assert.Throws <MockContentViewer.PreviewerNotAvailable>(
                () => contentViewer.View("Position2DUv", ContentType.Shader));
        }
Exemplo n.º 2
0
        public void PreviewImage()
        {
            var contentViewer = new MockContentViewer();

            contentViewer.View("DeltaEngineLogo", ContentType.Image);
            Assert.AreEqual(1, EntitiesRunner.Current.GetEntitiesOfType <Sprite>().Count);
        }
Exemplo n.º 3
0
		public void CannotPreviewContentTypeIfNoPreviewerIsAvailable()
		{
			var contentViewer = new MockContentViewer();
			Assert.Throws<MockContentViewer.PreviewerNotAvailable>(
				() => contentViewer.View("Position2DUv", ContentType.Shader));
		}
Exemplo n.º 4
0
		public void PreviewImage()
		{
			var contentViewer = new MockContentViewer();
			contentViewer.View("DeltaEngineLogo", ContentType.Image);
			Assert.AreEqual(1, EntitiesRunner.Current.GetEntitiesOfType<Sprite>().Count);
		}