Ejemplo n.º 1
0
        public void Now_should_throw_when_called_directly()
        {
            var raiser = new Raise <EventArgs>(null, EventArgs.Empty);

            Assert.Throws <NotSupportedException>(() =>
                                                  raiser.Now(null, null));
        }
Ejemplo n.º 2
0
        public void Now_should_throw_when_called_directly()
        {
            var raiser = new Raise<EventArgs>(null, EventArgs.Empty);

            Assert.Throws<NotSupportedException>(() =>
                raiser.Now(null, null));
        }
Ejemplo n.º 3
0
        public void Now_should_throw_when_called_directly()
        {
            // Arrange
            var raiser = new Raise<EventArgs>(null, EventArgs.Empty);

            // Act
            var exception = Record.Exception(() => raiser.Now(null, null));

            // Assert
            exception.Should().BeAnExceptionOfType<NotSupportedException>();
        }
Ejemplo n.º 4
0
        public void Now_should_throw_when_called_directly()
        {
            // Arrange
            var raiser = new Raise <EventArgs>(null, EventArgs.Empty);

            // Act
            var exception = Record.Exception(() => raiser.Now(null, null));

            // Assert
            exception.Should().BeAnExceptionOfType <NotSupportedException>();
        }