Esempio n. 1
0
        public void MachineKey_UnProtect_WithNullPurpose_ThrowsArgumentNullException()
        {
            var sut = new MachineKeyProtector();

            sut.Invoking(protector => sut.Unprotect("good", null))
            .ShouldThrow <ArgumentNullException>("because we passed invalid input");
        }
Esempio n. 2
0
        public void MachineKey_Protect_WithNullText_ThrowsArgumentNullException()
        {
            var sut = new MachineKeyProtector();

            sut.Invoking(protector => sut.Protect(null, "test"))
            .ShouldThrow <ArgumentNullException>("because we passed invalid input");
        }