Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.verified.txt text eol=lf working-tree-encoding=UTF-8
*.verified.xml text eol=lf working-tree-encoding=UTF-8
*.verified.json text eol=lf working-tree-encoding=UTF-8
*.verified.bin binary
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,7 @@ ASALocalRun/
.localhistory/

# BeatPulse healthcheck temp database
healthchecksdb
healthchecksdb

# Verify tests
*.received.*
12 changes: 11 additions & 1 deletion Source/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@ root = true
tab_width = 4
indent_style = space
indent_size = 4
end_of_line = crlf
end_of_line = crlf

# Verify settings
[*.{received,verified}.{json,txt,xml}]
charset = utf-8
end_of_line = lf
indent_size = unset
indent_style = unset
insert_final_newline = false
tab_width = unset
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions Source/Tests/FunicularSwitch.Test/FunicularSwitch.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="PublicApiGenerator" Version="11.5.4" />
<PackageReference Include="Verify.MSTest" Version="29.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions Source/Tests/FunicularSwitch.Test/PublicApiTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System.Reflection;
using PublicApiGenerator;

namespace FunicularSwitch.Test;

[TestClass]
[UsesVerify]
public partial class PublicApiTest
{
[TestMethod]
public Task PublicApiHasNotChanged()
{
// Given
var assembly = typeof(Option).Assembly;

// When
var publicApi = assembly.GeneratePublicApi(
new ApiGeneratorOptions()
{
ExcludeAttributes = [typeof(AssemblyMetadataAttribute).FullName!],
});

// Then
return Verify(publicApi);
}

}
82 changes: 82 additions & 0 deletions Source/Tests/FunicularSwitch.Test/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,54 @@
"MSTest.Analyzers": "3.8.3"
}
},
"PublicApiGenerator": {
"type": "Direct",
"requested": "[11.5.4, )",
"resolved": "11.5.4",
"contentHash": "Va382WG4Vng8kCtDaAP5solqbhayMMlW1E+e/DV/w39yJPybmMgy8fbdUvvQgG93EMILx7JtJbGS1HRhVNTUVQ==",
"dependencies": {
"Mono.Cecil": "0.11.6",
"System.CodeDom": "6.0.0"
}
},
"Verify.MSTest": {
"type": "Direct",
"requested": "[29.3.0, )",
"resolved": "29.3.0",
"contentHash": "uFCB/0AjV+AnVnohYHcdBYyZIqMj6KGHLF/AD4GUjsLQSuUsC+b/1qD1oXsM5Hm05VCFJSx017ErkgVfWCulEw==",
"dependencies": {
"Argon": "0.27.0",
"DiffEngine": "16.1.0",
"MSTest.TestFramework": "3.8.3",
"SimpleInfoName": "3.1.0",
"System.IO.Hashing": "9.0.4",
"Verify": "29.3.0"
}
},
"Argon": {
"type": "Transitive",
"resolved": "0.27.0",
"contentHash": "LtZKATYeTwDyYq1AXrgVU/ly+nI6GvE0GK1isJYFPQOnb2uHUxvDA+yh40QYaITGTLViXK7rbWhNKpbZ5pb9XA=="
},
"DiffEngine": {
"type": "Transitive",
"resolved": "16.1.0",
"contentHash": "ImEFC6BN62paN0N7v8vrLY3x/LpfbJaJy5yDtL+/L2As6FI1npGJcFZwzz1A7pdDjIYPOXE91qv6BpgEUGjDkA==",
"dependencies": {
"EmptyFiles": "8.8.0",
"System.Management": "8.0.0"
}
},
"DiffPlex": {
"type": "Transitive",
"resolved": "1.7.2",
"contentHash": "qJEjdxEDBWSFZGB8paBB9HDeJXHGlHlOXeGX3kbTuXWuOsgv2iSAEOOzo5V1/B39Vcxr9IVVrNKewRcX+rsn4g=="
},
"EmptyFiles": {
"type": "Transitive",
"resolved": "8.8.0",
"contentHash": "d0pgc/vMyKgQ9T3qiiJBn1uYUSZ1/OShh6tySnNSkELRSgM4A4IOrpdQhLqwCkPwYvdJqzKuxQ6wn3MQAd4GNA=="
},
"Humanizer.Core": {
"type": "Transitive",
"resolved": "2.14.1",
Expand Down Expand Up @@ -284,6 +327,11 @@
"resolved": "6.0.0",
"contentHash": "hqTM5628jSsQiv+HGpiq3WKBl2c8v1KZfby2J6Pr7pEPlK9waPdgEO6b8A/+/xn/yZ9ulv8HuqK71ONy2tg67A=="
},
"Mono.Cecil": {
"type": "Transitive",
"resolved": "0.11.6",
"contentHash": "f33RkDtZO8VlGXCtmQIviOtxgnUdym9xx/b1p9h91CRGOsJFxCFOFK1FDbVt1OCf1aWwYejUFa2MOQyFWTFjbA=="
},
"MSTest.Analyzers": {
"type": "Transitive",
"resolved": "3.8.3",
Expand Down Expand Up @@ -349,6 +397,16 @@
"resolved": "6.3.4",
"contentHash": "mQW9bwsWJq30lacl33MMVLBlrit5ClNEpGzKryIuLfP1UTL6feQK1yzA/5IQXdtjXvUEoI5bo1Axjen5lOm7Bg=="
},
"SimpleInfoName": {
"type": "Transitive",
"resolved": "3.1.0",
"contentHash": "j+ENh86NhxrgDc6T1ueqIR2QOdDkSJY2dbTFyPN/JvIXifB4GHAunlMw/x7P6m7XaXEHr3s+SMZfKBlmnmkO6g=="
},
"System.CodeDom": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "WTlRjL6KWIMr/pAaq3rYqh0TJlzpouaQ/W1eelssHgtlwHAH25jXTkUphTYx9HaIIf7XA6qs/0+YhtLEQRkJ+Q=="
},
"System.Collections": {
"type": "Transitive",
"resolved": "4.0.11",
Expand Down Expand Up @@ -528,6 +586,11 @@
"System.Threading.Tasks": "4.3.0"
}
},
"System.IO.Hashing": {
"type": "Transitive",
"resolved": "9.0.4",
"contentHash": "WogPvgAFqQORFD8Iyha6RZ+/1QB3dsWRWxbwi8/HHVgiGQ8z0oMWpwe8Kk3Ti+Roe+P6a3sBg+WwBfEsyziZKg=="
},
"System.IO.Pipelines": {
"type": "Transitive",
"resolved": "8.0.0",
Expand Down Expand Up @@ -569,6 +632,14 @@
"System.Threading": "4.0.11"
}
},
"System.Management": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "jrK22i5LRzxZCfGb+tGmke2VH7oE0DvcDlJ1HAKYU8cPmD8XnpUT0bYn2Gy98GEhGjtfbR/sxKTVb+dE770pfA==",
"dependencies": {
"System.CodeDom": "8.0.0"
}
},
"System.ObjectModel": {
"type": "Transitive",
"resolved": "4.0.12",
Expand Down Expand Up @@ -796,6 +867,17 @@
"System.Drawing.Common": "6.0.0"
}
},
"Verify": {
"type": "Transitive",
"resolved": "29.3.0",
"contentHash": "Urc7/If0eLpawVFtZrzYso3YrIWXOVkIY9iFiAhm/XrqUHDIP+wT5P/6uj5GCSGsY2yDT7OZ9xAwiLbxhEGnVw==",
"dependencies": {
"Argon": "0.27.0",
"DiffEngine": "16.1.0",
"SimpleInfoName": "3.1.0",
"System.IO.Hashing": "9.0.4"
}
},
"funicularswitch": {
"type": "Project",
"dependencies": {
Expand Down
Loading