예제 #1
0
        [Test] public void WhenConvertibleObjectsSelected_ShouldBeAvailable()
        {
            var go = CreateGameObject(typeof(Mask), typeof(Image));

            SelectObjects(go);
            Assert.IsTrue(ConvertMaskMenu.CanConvert());
        }
예제 #2
0
        void AssertObjectIsNotConvertible(params Type[] componentTypes)
        {
            var go = CreateGameObject(componentTypes);

            SelectObjects(go);
            Assert.IsFalse(ConvertMaskMenu.CanConvert());
        }
예제 #3
0
        [Test] public void WhenNotAllOfSelectedObjectsConvertible_ShouldBeNotAvailable()
        {
            var good = CreateGameObject(typeof(Mask), typeof(Image));
            var bad  = CreateGameObject(typeof(Mask), typeof(Text));

            SelectObjects(good, bad);
            Assert.IsFalse(ConvertMaskMenu.CanConvert());
        }
예제 #4
0
 void SelectAndConvertObjects(params GameObject[] objects)
 {
     SelectObjects(objects);
     ConvertMaskMenu.Convert();
 }
예제 #5
0
 [Test] public void WhenNoObjectSelected_ShouldBeNotAvailable()
 {
     SelectObjects();
     Assert.IsFalse(ConvertMaskMenu.CanConvert());
 }