Skip to content

Commit

Permalink
Change namespace Fallible to FallibleTypes
Browse files Browse the repository at this point in the history
This change is done to prevent the clash of the Fallible static class and Fallible namespace to improve the intellisense experience.
  • Loading branch information
tvandinther committed Mar 18, 2022
1 parent f5bc9e4 commit 2f72b6e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Fallible.Tests/ErrorTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Xunit;

namespace Fallible.Tests;
namespace FallibleTypes.Tests;

public class ErrorTests
{
Expand All @@ -18,7 +18,7 @@ public void WhenCreated_ShouldHaveMessage()
[Fact]
public void WhenCreated_ShouldHaveStackTrace()
{
var expectedStackTraceSubstring = "at Fallible.Error..ctor";
var expectedStackTraceSubstring = "at FallibleTypes.Error..ctor";

var error = new Error("Test");

Expand Down Expand Up @@ -132,7 +132,7 @@ public void ToString_ContainsMessage()
[Fact]
public void ToString_ContainsStackTrace()
{
var expectedSubstring = "at Fallible.Error..ctor";
var expectedSubstring = "at FallibleTypes.Error..ctor";
var error = new Error("Test");

var result = error.ToString();
Expand Down
2 changes: 1 addition & 1 deletion Fallible.Tests/FallibleTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using Xunit;

namespace Fallible.Tests;
namespace FallibleTypes.Tests;

public class FallibleTests
{
Expand Down
2 changes: 1 addition & 1 deletion Fallible/Error.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Runtime.CompilerServices;
using System.Text;

namespace Fallible;
namespace FallibleTypes;

public class Error : IEquatable<Error>
{
Expand Down
2 changes: 1 addition & 1 deletion Fallible/Fallible.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>0.1.5</PackageVersion>
<PackageVersion>0.2.0</PackageVersion>
<Title>Fallible</Title>
<Authors>Tom van Dinther</Authors>
<Description>An idiomatic way to explicitly define, propagate and handle error states in C#. This library is inspired by Go's errors.</Description>
Expand Down
2 changes: 1 addition & 1 deletion Fallible/FallibleGenericStruct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Text;

namespace Fallible;
namespace FallibleTypes;

public readonly record struct Fallible<T> : IStructuralEquatable, ITuple
{
Expand Down
2 changes: 1 addition & 1 deletion Fallible/FallibleStatic.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.CompilerServices;

namespace Fallible;
namespace FallibleTypes;

public static class Fallible
{
Expand Down
2 changes: 1 addition & 1 deletion Fallible/Void.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Fallible;
namespace FallibleTypes;

public class Void
{
Expand Down

0 comments on commit 2f72b6e

Please sign in to comment.