constructor-igor / NUnit.That.Resharper.Plugin

Resharper plugin for NUnit support
MIT License
3 stars 0 forks source link

Check support of xunit #44

Open constructor-igor opened 8 years ago

constructor-igor commented 8 years ago

If xunit have something as Assert.That, suggested to support it too.

constructor-igor commented 8 years ago

supported 2 xunit use cases:

        [Fact]
        [ExpectedException]
        public void ExpectedExceptionTestV1()
        {
            double r = DivException(2, 0);
        }
        [Fact]
        [ExpectedException(typeof(ArgumentException))]
        public void ExpectedExceptionTestV1_with_type()
        {
            double r = DivArgumentException(2, 0);
        }

to

        [Fact]
        public void ExpectedExceptionTestV1()
        {
            Assert.Throws<Exception>(() => { double r = DivException(2, 0); });
        }

        [Fact]
        public void ExpectedExceptionTestV1_with_type()
        {
            Assert.Throws<ArgumentException>(() => { double r = DivArgumentException(2, 0); });
        }
constructor-igor commented 8 years ago

image