Skip to content
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

Merged
merged 2 commits into from
Oct 19, 2016
Merged

Added ObjectExtensions tests #27

merged 2 commits into from
Oct 19, 2016

Conversation

goggenb
Copy link
Contributor

@goggenb goggenb commented Oct 15, 2016

Added test cases for ObjectExtensions

Copy link
Owner

@Teodor92 Teodor92 left a 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
Copy link
Owner

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()
Copy link
Owner

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
Copy link
Owner

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()
Copy link
Owner

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()
{
Copy link
Owner

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()
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@goggenb
Copy link
Contributor Author

goggenb commented Oct 19, 2016

Hope i fixed everything with this commit :)

@Teodor92 Teodor92 merged commit 029cf79 into Teodor92:master Oct 19, 2016
@Teodor92
Copy link
Owner

Merged! Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants