Skip to content

Commit

Permalink
- fixes coverage and linting feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
  • Loading branch information
baywet committed Jul 7, 2022
1 parent 65d20f7 commit 472953a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Kiota.Builder/Exceptions/InvalidSchemaException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@

namespace Kiota.Builder.Exceptions;

[Serializable]
public class InvalidSchemaException : InvalidOperationException
{
public InvalidSchemaException(string message) : base(message)
{
}
public InvalidSchemaException():base(){}
public InvalidSchemaException(string message) : base(message){}
#nullable enable
public InvalidSchemaException(string? message, Exception? innerException):base(message, innerException){}
#nullable disable
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

using System;
using Xunit;

namespace Kiota.Builder.Exceptions.Tests;

public class InvalidSchemaExceptionTests {
[Fact]
public void Instantiates() {
Assert.NotNull(new InvalidSchemaException());
Assert.NotNull(new InvalidSchemaException("message"));
Assert.NotNull(new InvalidSchemaException("message", new InvalidOperationException()));
}
}

0 comments on commit 472953a

Please sign in to comment.