-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Added ObjectExtensions tests #27
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a few organizational tweaks needed. Well merge after this :)
using MoreDotNet.Extensions.Common; | ||
using Xunit; | ||
|
||
public class TypeCastTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename the test class to AsTests to reflect the method tested.
} | ||
|
||
[Fact] | ||
public void ToDictionary_Null_ShouldThrowArgumentNullException() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move all Test related to ToDictionary to separate class.
using MoreDotNet.Extensions.Common; | ||
using Xunit; | ||
|
||
public class TypeCheckTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename the test class to IsTests to reflect the method tested.
} | ||
|
||
[Fact] | ||
public void IsNot_NullItem_ShouldThrowShouldThrowArgumentNullException() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move the IsNot tests to a separate class.
|
||
[Fact] | ||
public void Is_BIsNotA_ShouldReturnTrue() | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename to IsNot_BIsNotA_ShouldReturnTrue to reflect the method tested.
|
||
[Fact] | ||
public void Is_BIsNotB_ShouldReturnFalse() | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
Hope i fixed everything with this commit :) |
Merged! Thanks! |
Added test cases for ObjectExtensions