C# How to check if a class implements generic interface?
In order to get the generic interface you need to use the Name property instead of the FullName property:
MyClass myClass = new MyClass();
Type myinterface = myClass.GetType()
.GetInterface(typeof(IMyInterface<int>).Name);
Assert.That(myinterface, Is.Not.Null);