Skip to content

Add Rule for converting is T into Is.InstanceOf<T>() #765

@manfred-brands

Description

@manfred-brands

I stumbled over code doing:

Assert.That(instance is SomeType, Is.True);
Assert.That(instance is SomeType);

This should be converted into:

Assert.That(instance, Is.InstanceOf<SomeType>());

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions