Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: add test
  • Loading branch information
annchous committed Nov 8, 2021
commit 89ba1576907e9ff7df12c102d54220e5c230bb3b
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ public static void Test_CustomAttributeTypedArgument_Constructor()
Assert.True(false, "Expected to find MyAttr Attribute");
}

[Fact]
public static void Test_CustomAttributeTypedArgument_ToString()
{
var argument = new CustomAttributeTypedArgument(new [] { new CustomAttributeTypedArgument(0) });

Assert.Equal("new CustomAttributeTypedArgument[1] { 0 }", argument.ToString());
}

[MyAttr(MyKinds.First, Desc = "This is a description on a method")]
private static void MyMethod() { }
}
Expand Down