-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into netstandard2.1
- Loading branch information
Showing
5 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: .NET Core Builds | ||
name: .NET Core Build | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) AltaModa Technologies. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using Ext = AMT.Extensions.Logging.IP; | ||
using FluentAssertions; | ||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
using Xunit; | ||
|
||
|
||
namespace Test.AMT.Extensions.Logging.IP | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class UdpLoggerOptionsTests | ||
{ | ||
|
||
[Fact] | ||
public void excp_on_null_IP_endpoint() | ||
{ | ||
Action act = () => new Ext.UdpLoggerOptions(null); | ||
act.Should().Throw<ArgumentNullException>(); | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright (c) AltaModa Technologies. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using Ext = AMT.Extensions.Logging.IP; | ||
using FluentAssertions; | ||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
using Xunit; | ||
using AMT.Extensions.Logging.IP; | ||
using Microsoft.Extensions.Logging; | ||
using System.Configuration.Provider; | ||
|
||
|
||
namespace Test.AMT.Extensions.Logging.IP | ||
{ | ||
[ExcludeFromCodeCoverage] | ||
public class UdpLoggerProviderTests | ||
{ | ||
|
||
[Fact] | ||
public void excp_on_null_options() | ||
{ | ||
Action act = () => new Ext.UdpLoggerProvider(null); | ||
act.Should().Throw<ArgumentNullException>(); | ||
} | ||
|
||
|
||
#region ILoggerProvider tests | ||
|
||
[Fact] | ||
public void foo() | ||
{ | ||
var udpProv = new Ext.UdpLoggerProvider(_opts); | ||
|
||
ILoggerProvider prov = udpProv as ILoggerProvider; | ||
Assert.NotNull(prov); | ||
|
||
ILogger l = prov.CreateLogger("randomCategory"); | ||
Assert.NotNull(l); | ||
|
||
l.LogInformation("using ILogger.LogInformation..."); | ||
|
||
} | ||
|
||
#endregion ILoggerProvider tests | ||
|
||
|
||
private static readonly UdpLoggerOptions _opts = new UdpLoggerOptions(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters