Skip to content

Commit d27f4b9

Browse files
[Improve] coverage
1 parent 55dcc0b commit d27f4b9

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// <copyright file="SpecObjectTypeTestFixture.cs" company="Starion Group S.A.">
3+
//
4+
// Copyright 2017-2025 Starion Group S.A.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// </copyright>
19+
// -------------------------------------------------------------------------------------------------
20+
21+
namespace ReqIFSharp.Tests.SpecTypes
22+
{
23+
using Microsoft.Extensions.Logging.Abstractions;
24+
25+
using NUnit.Framework;
26+
27+
using ReqIFSharp;
28+
29+
[TestFixture]
30+
public class SpecObjectTypeTestFixture
31+
{
32+
[Test]
33+
public void Verify_that_when_argument_null_exception_is_thrown()
34+
{
35+
ReqIFContent content = null;
36+
37+
Assert.That(() => new SpecObjectType(content, NullLoggerFactory.Instance), Throws.ArgumentNullException);
38+
}
39+
40+
[Test]
41+
public void Verify_that_when_constructed_no_exception_is_thrown()
42+
{
43+
var content = new ReqIFContent();
44+
45+
Assert.That(() => new SpecObjectType(content, NullLoggerFactory.Instance), Throws.Nothing);
46+
47+
Assert.That(() => new SpecObjectType(NullLoggerFactory.Instance), Throws.Nothing);
48+
}
49+
}
50+
}

0 commit comments

Comments
 (0)