示例#1
0
        public void SetUp()
        {
            RxApp.MainThreadScheduler = Scheduler.CurrentThread;

            this.serviceLocator = new Mock <IServiceLocator>();
            ServiceLocator.SetLocatorProvider(() => this.serviceLocator.Object);

            this.ribbonCategoryBehavior = new RibbonCategoryBehavior();
        }
示例#2
0
 public void VerifyIfTheCategoryNameIsChanged()
 {
     Assert.IsNull(this.ribbonCategoryBehavior.CategoryName);
     RibbonCategoryBehavior.SetCategoryName(this.ribbonCategoryBehavior, "abc");
     Assert.AreEqual("abc", this.ribbonCategoryBehavior.CategoryName);
 }