Пример #1
0
        public void CannotPreviewContentTypeIfNoPreviewerIsAvailable()
        {
            var contentViewer = new MockContentViewer();

            Assert.Throws <MockContentViewer.PreviewerNotAvailable>(
                () => contentViewer.View("Position2DUv", ContentType.Shader));
        }
Пример #2
0
        public void PreviewImage()
        {
            var contentViewer = new MockContentViewer();

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