public void SetUp() { RxApp.MainThreadScheduler = Scheduler.CurrentThread; this.serviceLocator = new Mock <IServiceLocator>(); ServiceLocator.SetLocatorProvider(() => this.serviceLocator.Object); this.ribbonCategoryBehavior = new RibbonCategoryBehavior(); }
public void VerifyIfTheCategoryNameIsChanged() { Assert.IsNull(this.ribbonCategoryBehavior.CategoryName); RibbonCategoryBehavior.SetCategoryName(this.ribbonCategoryBehavior, "abc"); Assert.AreEqual("abc", this.ribbonCategoryBehavior.CategoryName); }