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);
 }
示例#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);
        }