public void FreezesHelperWhenResolutionFreezes()
 {
     var helper = new MockShortStringHelper();
     ShortStringHelperResolver.Current = new ShortStringHelperResolver(helper);
     Assert.IsFalse(helper.IsFrozen);
     Resolution.Freeze();
     Assert.AreSame(helper, ShortStringHelperResolver.Current.Helper);
     Assert.IsTrue(helper.IsFrozen);
 }
Esempio n. 2
0
        public void FreezesHelperWhenResolutionFreezes()
        {
            var helper = new MockShortStringHelper();

            ShortStringHelperResolver.Current = new ShortStringHelperResolver(helper);
            Assert.IsFalse(helper.IsFrozen);
            Resolution.Freeze();
            Assert.AreSame(helper, ShortStringHelperResolver.Current.Helper);
            Assert.IsTrue(helper.IsFrozen);
        }