Skip to content

Commit

Permalink
Added test for implicit operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Kralizek committed Jan 9, 2019
1 parent 49f2485 commit 3f6f064
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,14 @@ public void TryParse_requires_correct_format(string descriptorName)
Assert.That(result, Is.False);
Assert.That(descriptor, Is.Null);
}

[Test, AutoMoqData]
public void MessageDescriptor_can_be_created_from_Type(Type type)
{
MessageDescriptor descriptor = type;

Assert.That(descriptor.Name, Is.EqualTo(type.Name));
Assert.That(descriptor.Namespace, Is.EqualTo(type.Namespace));
}
}
}

0 comments on commit 3f6f064

Please sign in to comment.