Example #1
0
        public void ShouldAssertPropertySetWhenChained()
        {
            IFileReader fileReader = Mock.Create <IFileReader>(Behavior.Strict);

            const string expected = @"c:\JustMock";

            fileReader.ArrangeSet(x => x.Path = expected);

            fileReader.Path = expected;

            Assert.Throws <MockException>(() => fileReader.Path = "abc");
        }