Skip to content

Commit 2274923

Browse files
committed
Docs: workflow and intro
1 parent 156b483 commit 2274923

7 files changed

Lines changed: 21 additions & 41 deletions

File tree

.github/workflows/CI-CD-Docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Update tokens in project files
2727
uses: cschleiden/replace-tokens@v1
2828
with:
29-
files: '["docs/*.md", "docs/**/*.md", "docs/templates/**/*.tmpl.partial", "*.csproj", "**/*.csproj"]'
29+
files: '["docs/*.md", "docs/**/*.md", "docs/**/*.tmpl.partial", "*.csproj", "**/*.csproj"]'
3030
- uses: actions/setup-dotnet@v1
3131
with:
3232
dotnet-version: '3.1.202'

docs/samples/samples.sln

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26124.0
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30114.105
55
MinimumVisualStudioVersion = 15.0.26124.0
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bunit.docs.samples", "components\bunit.docs.samples.csproj", "{60E2C52E-0DF6-445A-9568-ABA05CB2E6AF}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.docs.samples", "components\bunit.docs.samples.csproj", "{60E2C52E-0DF6-445A-9568-ABA05CB2E6AF}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{FC897929-3A4D-4276-9AF4-C77B0FAF221E}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bunit.docs.mstest.samples", "tests\mstest\bunit.docs.mstest.samples.csproj", "{C2060A20-8C56-4678-B65C-DCF52D70223D}"
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.docs.mstest.samples", "tests\mstest\bunit.docs.mstest.samples.csproj", "{C2060A20-8C56-4678-B65C-DCF52D70223D}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bunit.docs.nunit.samples", "tests\nunit\bunit.docs.nunit.samples.csproj", "{0BC8DBEB-500A-4DB2-9123-7617D24E5053}"
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.docs.nunit.samples", "tests\nunit\bunit.docs.nunit.samples.csproj", "{0BC8DBEB-500A-4DB2-9123-7617D24E5053}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bunit.docs.xunit.razor.samples", "tests\razor\bunit.docs.xunit.razor.samples.csproj", "{30518354-6437-4474-8198-870AA8B07A2D}"
14+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.docs.razor.samples", "tests\razor\bunit.docs.razor.samples.csproj", "{30518354-6437-4474-8198-870AA8B07A2D}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bunit.docs.xunit.samples", "tests\xunit\bunit.docs.xunit.samples.csproj", "{3B8B3B0E-CA33-4C76-901D-219F5FF848B3}"
16+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.docs.xunit.samples", "tests\xunit\bunit.docs.xunit.samples.csproj", "{3B8B3B0E-CA33-4C76-901D-219F5FF848B3}"
1717
EndProject
1818
Global
1919
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -24,9 +24,6 @@ Global
2424
Release|x64 = Release|x64
2525
Release|x86 = Release|x86
2626
EndGlobalSection
27-
GlobalSection(SolutionProperties) = preSolution
28-
HideSolutionNode = FALSE
29-
EndGlobalSection
3027
GlobalSection(ProjectConfigurationPlatforms) = postSolution
3128
{60E2C52E-0DF6-445A-9568-ABA05CB2E6AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3229
{60E2C52E-0DF6-445A-9568-ABA05CB2E6AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
@@ -89,10 +86,16 @@ Global
8986
{3B8B3B0E-CA33-4C76-901D-219F5FF848B3}.Release|x86.ActiveCfg = Release|Any CPU
9087
{3B8B3B0E-CA33-4C76-901D-219F5FF848B3}.Release|x86.Build.0 = Release|Any CPU
9188
EndGlobalSection
89+
GlobalSection(SolutionProperties) = preSolution
90+
HideSolutionNode = FALSE
91+
EndGlobalSection
9292
GlobalSection(NestedProjects) = preSolution
9393
{C2060A20-8C56-4678-B65C-DCF52D70223D} = {FC897929-3A4D-4276-9AF4-C77B0FAF221E}
9494
{0BC8DBEB-500A-4DB2-9123-7617D24E5053} = {FC897929-3A4D-4276-9AF4-C77B0FAF221E}
9595
{30518354-6437-4474-8198-870AA8B07A2D} = {FC897929-3A4D-4276-9AF4-C77B0FAF221E}
9696
{3B8B3B0E-CA33-4C76-901D-219F5FF848B3} = {FC897929-3A4D-4276-9AF4-C77B0FAF221E}
9797
EndGlobalSection
98+
GlobalSection(ExtensibilityGlobals) = postSolution
99+
SolutionGuid = {4CDEB3A4-44B9-4715-9082-28DA841514DB}
100+
EndGlobalSection
98101
EndGlobal
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
@namespace Bunit.Docs.Samples
2+
@using global::Xunit
23

34
@using Microsoft.AspNetCore.Components.Forms
45
@using Microsoft.AspNetCore.Components.Routing
56
@using Microsoft.AspNetCore.Components.Web
67
@using Microsoft.JSInterop
78
@using Microsoft.Extensions.DependencyInjection
9+
@using AngleSharp.Dom
810
@using Bunit
911
@using Bunit.Mocking.JSInterop
10-
@using global::Xunit
11-
@using AngleSharp.Dom
12+
@using Xunit

docs/samples/tests/razor/bunit.docs.xunit.razor.samples.csproj

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/site/docs/getting-started/create-test-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To use bUnit with xUnit, the easiest approached is using the bUnit project templ
1111

1212
## Create a Test Project Manually
1313

14-
To create a project for testing you Blazor components that uses either of three general purpose test frameworks, go through these steps:
14+
This section will take you through the steps listed below to manually create a project for testing Blazor components, that uses either of three general purpose test frameworks. Read the rest of the section to get the all the details. Skip any steps you have already previously completed, e.g. if you already have a test project.
1515

1616
1. Create a new xUnit/NUnit/MSTest testing project
1717
2. Add bUnit to the test project

docs/site/docs/getting-started/writing-razor-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A test for a Blazor component can be written in a Blazor component, using a mix
1919

2020
Razor tests are written in Blazor test components. To make our life's a little easier, let us first set up a `_Imports.razor` file, with the using statements we are going to be using throughout our tests. Simply add the following `_Imports.razor` to the root folder where you will be placing your Blazor test components:
2121

22-
[!code-html[_Imports.razor](../../../samples/tests/razor/_Imports.razor#L3-)]
22+
[!code-html[_Imports.razor](../../../samples/tests/razor/_Imports.razor#L4-)]
2323

2424
With that created, we are ready to create our first Razor test.
2525

docs/site/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ Shout outs and a big thank you [to all the contributors](https://github.com/egil
7373
- Help build the library, just pick an issue and submit pull-requests.
7474
- Help write documentation.
7575
- Create blog posts, presentations or video tutorials. If you do, I will be happy to showcase them in the related section on this site.
76-
-
76+
77+
Documentation updated on #{NBGV_GitCommitDate}# in commit #{NBGV_GitCommitIdShort}#.

0 commit comments

Comments
 (0)