Skip to content

Commit

Permalink
Prefix namespace with Gabo
Browse files Browse the repository at this point in the history
So that it doesn't look like it's an official tool. I'm still not sure
what the best naming convention is for global tools.
  • Loading branch information
gabrielweyer committed Apr 20, 2022
1 parent 1f46204 commit 4322614
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 18 deletions.
2 changes: 2 additions & 0 deletions dotnet-decode-base64.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=Gabo/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
2 changes: 1 addition & 1 deletion src/dotnet-decode-base64/Base64Decoder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace DotNet.DecodeBase64;
namespace Gabo.DotNet.DecodeBase64;

public static class Base64Decoder
{
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-decode-base64/IConsole.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace DotNet.DecodeBase64;
namespace Gabo.DotNet.DecodeBase64;

internal interface IConsole
{
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-decode-base64/NonThreadSafeConsole.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace DotNet.DecodeBase64;
namespace Gabo.DotNet.DecodeBase64;

internal class NonThreadSafeConsole : IConsole
{
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-decode-base64/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace DotNet.DecodeBase64;
namespace Gabo.DotNet.DecodeBase64;

internal static class Program
{
Expand Down
4 changes: 2 additions & 2 deletions src/dotnet-decode-base64/dotnet-decode-base64.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'True'">true</ContinuousIntegrationBuild>
<RootNamespace>DotNet.DecodeBase64</RootNamespace>
<RootNamespace>Gabo.DotNet.DecodeBase64</RootNamespace>
<PackAsTool>true</PackAsTool>
<PackageId>dotnet-decode-base64</PackageId>
<Authors>Gabriel Weyer</Authors>
Expand All @@ -22,7 +22,7 @@
<NoWarn>CS7035</NoWarn>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="DotNet.DecodeBase64.Tests" />
<InternalsVisibleTo Include="Gabo.DotNet.DecodeBase64.Tests" />
</ItemGroup>
<ItemGroup>
<Using Include="System.Text" />
Expand Down
8 changes: 4 additions & 4 deletions tests/dotnet-decode-base64-tests/Base64DecoderTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace DotNet.DecodeBase64.Tests;
namespace Gabo.DotNet.DecodeBase64.Tests;

public class Base64DecoderTests
{
Expand All @@ -13,7 +13,7 @@ public void GivenValidBase64String_WhenDecode_ThenReturnDecodedString()
var actual = Base64Decoder.Decode(input);

// Assert
Assert.Equal(expected, actual);
actual.Should().Be(expected);
}

[Theory]
Expand All @@ -25,7 +25,7 @@ public void GivenMinusAndUnderscore_WhenDecode_ThenReturnDecodedString(string in
var actual = Base64Decoder.Decode(input);

// Assert
Assert.Equal(expected, actual);
actual.Should().Be(expected);
}

[Theory]
Expand All @@ -37,6 +37,6 @@ public void GivenRemovedPadding_WhenDecode_ThenReturnDecodedString(string input,
var actual = Base64Decoder.Decode(input);

// Assert
Assert.Equal(expected, actual);
actual.Should().Be(expected);
}
}
5 changes: 1 addition & 4 deletions tests/dotnet-decode-base64-tests/ProgramTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using DotNet.DecodeBase64.Tests.TestInfrastructure;
using FluentAssertions;

namespace DotNet.DecodeBase64.Tests;
namespace Gabo.DotNet.DecodeBase64.Tests;

public class ProgramTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace DotNet.DecodeBase64.Tests.TestInfrastructure;
namespace Gabo.DotNet.DecodeBase64.Tests.TestInfrastructure;

internal class MockConsole : IConsole
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
<TargetFrameworks>netcoreapp3.1;net6.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>DotNet.DecodeBase64.Tests</RootNamespace>
<AssemblyName>DotNet.DecodeBase64.Tests</AssemblyName>
<RootNamespace>Gabo.DotNet.DecodeBase64.Tests</RootNamespace>
<AssemblyName>Gabo.DotNet.DecodeBase64.Tests</AssemblyName>
<IsPackable>false</IsPackable>
<NoWarn>CS7035</NoWarn>
</PropertyGroup>

<ItemGroup>
<Using Include="FluentAssertions" />
<Using Include="Gabo.DotNet.DecodeBase64" />
<Using Include="Gabo.DotNet.DecodeBase64.Tests.TestInfrastructure" />
<Using Include="Xunit" />
</ItemGroup>

Expand Down

0 comments on commit 4322614

Please sign in to comment.