-
Notifications
You must be signed in to change notification settings - Fork 0
/
ObjectSharedArgumentsTests.cs
36 lines (34 loc) · 1.04 KB
/
ObjectSharedArgumentsTests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using ObjectToTest.Exceptions;
using ObjectToTest.UnitTests.Data;
using ObjectToTest.UnitTests.Models;
using Xunit;
namespace ObjectToTest.UnitTests
{
public class ObjectSharedArgumentsTests
{
[Fact(Skip = "Need to fix this test")]
/**
* @todo #12:60m/DEV Improve the test: Ideally the test should compare the result that returned by Argument method
* with some manually created argument that wraps the original object.
* Assert.Equal(
* new Argument(user),
* new ObjectSharedArguments(withUser).Argument(user)
* );
*/
public void SharedArgument()
{
var user = new User("user name");
var withUser = new WithUserArgument(
user,
new WithUserPublicProperty
{
User = user
}
);
Assert.NotNull(
new ObjectSharedArguments(withUser).Argument(user)
);
}
}
}