Exemplo n.º 1
0
        public void TryingToSaveNullGuidShouldBePunished()
        {
            var input   = new ZeroContentHashModel();
            var fixture = createExtendedFixture();

            bool shouldFail = true;

            try {
                fixture.Save(input);
            } catch (Exception ex) {
                shouldFail = false;
            }
            Assert.False(shouldFail);

            shouldFail = true;
            try {
                fixture.CreateSyncPoint(input);
            } catch (Exception ex) {
                shouldFail = false;
            }
            Assert.False(shouldFail);
        }
Exemplo n.º 2
0
        public void TryingToSaveNullGuidShouldBePunished()
        {
            var input = new ZeroContentHashModel();
            var fixture = createExtendedFixture();

            bool shouldFail = true;
            try {
                fixture.Save(input);
            } catch(Exception ex) {
                this.Log().Debug(ex);
                shouldFail = false;
            }
            Assert.False(shouldFail);

            shouldFail = true;
            try {
                fixture.CreateSyncPoint(input);
            } catch(Exception ex) {
                this.Log().Debug(ex);
                shouldFail = false;
            }
            Assert.False(shouldFail);
        }