コード例 #1
0
	    public void Should_be_able_to_apply_empty_invariant()
	    {
	        EventStream stream = null;

	        Assert.Throws<EventStreamEmptyException>(() => stream.EmptyInvariant());

            stream = new EventStream(new Guid());

	        Assert.Throws<EventStreamEmptyException>(() => stream.EmptyInvariant());
	    }
コード例 #2
0
        public void Should_be_able_to_apply_empty_invariant()
        {
            EventStream stream = null;

            Assert.Throws <EventStreamEmptyException>(() => stream.EmptyInvariant());

            stream = new EventStream(new Guid(), new Mock <IEventMethodInvoker>().Object);

            Assert.Throws <EventStreamEmptyException>(() => stream.EmptyInvariant());
        }