コード例 #1
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);
 }
コード例 #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);
        }