Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.53 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text.RegularExpressions;
  4. using System.Windows.Input;
  5. using System.Windows.Forms;
  6. using System.Drawing;
  7. using Microsoft.VisualStudio.TestTools.UITesting;
  8. using Microsoft.VisualStudio.TestTools.UnitTesting;
  9. using Microsoft.VisualStudio.TestTools.UITest.Extension;
  10. using Keyboard = Microsoft.VisualStudio.TestTools.UITesting.Keyboard;
  11.  
  12.  
  13. namespace TestiranjeZadaca3CUI
  14. {
  15.     /// <summary>
  16.     /// Summary description for CodedUITest1
  17.     /// </summary>
  18.     [CodedUITest]
  19.     public class ZapisOKoristenjuSpraveCUI
  20.     {
  21.         public ZapisOKoristenjuSpraveCUI()
  22.         {
  23.         }
  24.  
  25.         [TestMethod]
  26.         public void KoristenjeSpraveSpasenoMethod()
  27.         {
  28.             // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
  29.             this.UIMap.ZabiljeziZapisOKoristenju();
  30.             this.UIMap.AssertZapisOKorisnikuSprave();
  31.         }
  32.  
  33.         #region Additional test attributes
  34.  
  35.         // You can use the following additional attributes as you write your tests:
  36.  
  37.         ////Use TestInitialize to run code before running each test
  38.         //[TestInitialize()]
  39.         //public void MyTestInitialize()
  40.         //{        
  41.         //    // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
  42.         //}
  43.  
  44.         ////Use TestCleanup to run code after each test has run
  45.         //[TestCleanup()]
  46.         //public void MyTestCleanup()
  47.         //{        
  48.         //    // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
  49.         //}
  50.  
  51.         #endregion
  52.  
  53.         /// <summary>
  54.         ///Gets or sets the test context which provides
  55.         ///information about and functionality for the current test run.
  56.         ///</summary>
  57.         public TestContext TestContext
  58.         {
  59.             get
  60.             {
  61.                 return testContextInstance;
  62.             }
  63.             set
  64.             {
  65.                 testContextInstance = value;
  66.             }
  67.         }
  68.         private TestContext testContextInstance;
  69.  
  70.         public UIMap UIMap
  71.         {
  72.             get
  73.             {
  74.                 if ((this.map == null))
  75.                 {
  76.                     this.map = new UIMap();
  77.                 }
  78.  
  79.                 return this.map;
  80.             }
  81.         }
  82.  
  83.         private UIMap map;
  84.     }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement