NUnit.Framework.Assert.IsAssignableFrom(object)

Here are the examples of the csharp api NUnit.Framework.Assert.IsAssignableFrom(object) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : TestFixture.cs
with Apache License 2.0
from pvginkel

[Test]
        public void InvokeBackThrowsException()
        {
            using (var server = CreateServer())
            {
                server.On<int, int, int>("Multiply", (a, b) => throw new NotSupportedException("Not supported test"));
                Exception exception = null;

                try
                {
                    server.Invoke<int>("InvokeBackWithInt", 3, 4);
                }
                catch (Exception ex)
                {
                    exception = ex;
                }

                replacedert.IsNotNull(exception);
                replacedert.IsreplacedignableFrom<PipeRpcInvocationException>(exception);
                replacedert.AreEqual("Not supported test", exception.Message);
            }
        }