Esempio n. 1
0
        public void DelaySignWithoutEitherKeyFileOrKeyContainer()
        {
            var rcr = new ResolveComReference();
            var e   = new MockEngine();

            rcr.BuildEngine = e;

            rcr.DelaySign = true;
            Assert.False(rcr.Execute());

            e.AssertLogContains("MSB3301");
        }
Esempio n. 2
0
        public void BothKeyFileAndKeyContainer()
        {
            var rcr = new ResolveComReference();
            var e   = new MockEngine();

            rcr.BuildEngine = e;

            rcr.KeyFile      = "foo";
            rcr.KeyContainer = "bar";

            Assert.False(rcr.Execute());

            e.AssertLogContains("MSB3300");
        }