Ejemplo n.º 1
0
        public void CreateCornerMenusTest()
        {
            // Test the two menu scenario
            CornerMenusMgr_Accessor target1 = new CornerMenusMgr_Accessor();
            target1.MenuType = CornerMenusMgr.CornerMenuType.TwoCornerMenus;
            target1.CreateCornerMenus();
            Assert.AreEqual(target1.MenuType, CornerMenusMgr.CornerMenuType.TwoCornerMenus);
            Assert.IsNotNull(target1.FunctionMenuUpperRight);
            Assert.IsNotNull(target1.FunctionMenuBottomLeft);
            Assert.IsNull(target1.FunctionMenuUpperLeft);
            Assert.IsNull(target1.FunctionMenuBottomRight);

            // Test the 4 menu scenario
            CornerMenusMgr_Accessor target2 = new CornerMenusMgr_Accessor();
            target2.MenuType = CornerMenusMgr.CornerMenuType.FourCornerMenus;
            target2.CreateCornerMenus();
            Assert.AreEqual(target2.MenuType, CornerMenusMgr.CornerMenuType.FourCornerMenus);
            Assert.IsNotNull(target2.FunctionMenuUpperRight);
            Assert.IsNotNull(target2.FunctionMenuBottomLeft);
            Assert.IsNotNull(target2.FunctionMenuUpperLeft);
            Assert.IsNotNull(target2.FunctionMenuBottomRight);
        }
Ejemplo n.º 2
0
 public void isExitDialogVisibleTest()
 {
     CornerMenusMgr_Accessor target = new CornerMenusMgr_Accessor(); // TODO: Initialize to an appropriate value
     bool expected = false; // TODO: Initialize to an appropriate value
     bool actual;
     actual = target.isExitDialogVisible();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Ejemplo n.º 3
0
 public void CreateExitDialogsTest()
 {
     CornerMenusMgr_Accessor target = new CornerMenusMgr_Accessor(); // TODO: Initialize to an appropriate value
     target.CreateExitDialogs();
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Ejemplo n.º 4
0
 public void CornerMenusMgrConstructorTest()
 {
     CornerMenusMgr_Accessor target = new CornerMenusMgr_Accessor();
     // nothing to test
 }
Ejemplo n.º 5
0
 public void showExitMenuTest()
 {
     CornerMenusMgr_Accessor target = new CornerMenusMgr_Accessor(); // TODO: Initialize to an appropriate value
     double orientation = 0F; // TODO: Initialize to an appropriate value
     CornerMenu.CornerMenuLocation location = new CornerMenu.CornerMenuLocation(); // TODO: Initialize to an appropriate value
     target.showExitMenu(orientation, location);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
Ejemplo n.º 6
0
 public void setLayoutRootTest()
 {
     CornerMenusMgr_Accessor target = new CornerMenusMgr_Accessor(); // TODO: Initialize to an appropriate value
     Canvas LayoutRoot = null; // TODO: Initialize to an appropriate value
     target.setLayoutRoot(LayoutRoot);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }