Skip to content

Commit aa94fd5

Browse files
committed
removed unneeded properties, added a few functions
1 parent 5b24010 commit aa94fd5

4 files changed

Lines changed: 27 additions & 4 deletions

File tree

.github/workflows/TheAnswer.CI.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: TheAnswer.CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
pull_request:
8+
workflow_dispatch:
49

510

611
jobs:

Hermit.Tests/WrapThat.Tests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
<PackageReference Include="NUnit" Version="4.4.0" />
1111
<PackageReference Include="NUnit3TestAdapter" Version="5.1.0" />
1212
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
13+
<PackageReference Include="NUnit.Analyzers" Version="4.10.0" />
1314
</ItemGroup>
1415

1516
<ItemGroup>
1617
<ProjectReference Include="..\TheAnswer\WrapThat.csproj" />
1718
</ItemGroup>
1819

20+
21+
1922
</Project>

TheAnswer/WrapThat.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<PackageId>WrapThat.Answer</PackageId>
66
<Description>Give you two static constants to use in tests, both have value 42, which is TheAnswer</Description>
77
<TargetFramework>net8.0</TargetFramework>
8-
<IsPackable>true</IsPackable>
98
<Authors>Terje Sandstrom</Authors>
109
<Copyright>2020 Terje Sandstrom</Copyright>
1110
<PackageLicenseExpression>MIT</PackageLicenseExpression>
@@ -14,10 +13,8 @@
1413
<MinVerTagPrefix></MinVerTagPrefix>
1514
<MinVerVerbosity>normal</MinVerVerbosity>
1615
<GenerateDocumentationFile>True</GenerateDocumentationFile>
17-
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
1816
<PackageReadmeFile>README.md</PackageReadmeFile>
1917
<IncludeSymbols>true</IncludeSymbols>
20-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2118
</PropertyGroup>
2219

2320
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">

TheAnswer/YouKnow.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
namespace WrapThat;
22

3+
/// <summary>
4+
/// A static class that provides the answer to the ultimate question of life, the universe, and everything.
5+
/// </summary>
36
public static class YouKnow
47
{
8+
/// <summary>
9+
/// The answer to the ultimate question of life, the universe, and everything.
10+
/// </summary>
511
public static int TheAnswer => 42;
12+
13+
/// <summary>
14+
/// A static constant that represents the answer to the ultimate question of life, the universe, and everything.
15+
/// </summary>
616
public static int FortyTwo => TheAnswer;
717

18+
/// <summary>
19+
/// Returns the answer to the ultimate question of life, the universe, and everything.
20+
/// </summary>
821
public static int GiveMeTheAnswer()
922
{
1023
return TheAnswer;
1124
}
25+
26+
/// <summary>
27+
/// Returns a string that advises not to panic.
28+
/// </summary>
29+
public static string DontPanic() => "Don't Panic!";
1230
}

0 commit comments

Comments
 (0)