コード例 #1
0
        public void AddCubeToSceneTest()
        {
            const string testEntityName = "TestEntityName";

            SceneContentBusinessManager.AddSceneElementInSpace <CubeEntity>(SceneContentMock.Object, 0, 0, 0, testEntityName);
            StageMock.Verify(m => m.Add(It.IsAny <ISceneEntity>()), Times.Once());
        }
コード例 #2
0
 public void TestImport3DModel()
 {
     SceneContentBusinessManager.Import3DModel("filename", "filepath", SceneContentMock.Object);
     StageMock.Verify(m => m.Add(It.IsAny <ISceneEntity>()), Times.Once());
 }