Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 01bd403

Browse files
ghuntleystephentoub
authored andcommitted
Add ScaffoldColumnAttribute construction test
Progresses issue #921
1 parent eb291ac commit 01bd403

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Xunit;
2+
3+
namespace System.ComponentModel.DataAnnotations
4+
{
5+
public class ScaffoldColumnAttributeTests
6+
{
7+
[Theory]
8+
[InlineData(true)]
9+
[InlineData(false)]
10+
public void Can_construct_and_get_Scaffold(bool value)
11+
{
12+
var attribute = new ScaffoldColumnAttribute(value);
13+
Assert.Equal(value, attribute.Scaffold);
14+
}
15+
}
16+
}

src/System.ComponentModel.Annotations/tests/System.ComponentModel.Annotations.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<Compile Include="RangeAttributeTests.cs" />
3131
<Compile Include="RegularExpressionAttributeTests.cs" />
3232
<Compile Include="RequiredAttributeTests.cs" />
33+
<Compile Include="ScaffoldColumnAttributeTests.cs" />
3334
<Compile Include="Schema\ColumnAttributeTests.cs" />
3435
<Compile Include="Schema\DatabaseGeneratedAttributeTests.cs" />
3536
<Compile Include="Schema\ForeignKeyAttributeTests.cs" />

0 commit comments

Comments
 (0)