Skip to content

Commit 9903ff4

Browse files
authored
Fix test errors and warnings (#80)
1 parent e3d9faf commit 9903ff4

File tree

8 files changed

+5
-8
lines changed

8 files changed

+5
-8
lines changed

SW2URDF/Test/TestCommon.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public void TestSaveSWComponentsList(string modelName)
265265

266266
[Theory]
267267
[InlineData(MODEL_NAME_3_DOF_ARM, "3_DOF_ARM_BASE-1", new byte[] {
268-
248, 42, 0, 0, 5, 0, 0, 0, 255, 254, 255, 26, 51, 0, 95, 0, 68, 0, 79, 0, 70, 0, 95,
268+
224, 46, 0, 0, 5, 0, 0, 0, 255, 254, 255, 26, 51, 0, 95, 0, 68, 0, 79, 0, 70, 0, 95,
269269
0, 65, 0, 82, 0, 77, 0, 95, 0, 66, 0, 65, 0, 83, 0, 69, 0, 45, 0, 49, 0, 64, 0, 51,
270270
0, 95, 0, 68, 0, 79, 0, 70, 0, 95, 0, 65, 0, 82, 0, 77, 0, 4, 0, 0, 0, 16, 0, 0, 0,
271271
1, 0, 0, 0, 1, 0, 0, 0, 17, 0, 0, 0, })]
@@ -317,11 +317,8 @@ public void TestLoadSWComponentsList(string modelName)
317317
}
318318

319319
[Theory]
320-
[InlineData(MODEL_NAME_3_DOF_ARM, new byte[] { 248, 42, 0, 0, 5, 0, 0, 0, 255, 254, 255, 26,
321-
51, 0, 95, 0, 68, 0, 79, 0, 70, 0, 95, 0, 65, 0, 82, 0, 77, 0, 95, 0, 66, 0, 65, 0, 83,
322-
0, 69, 0, 45, 0, 49, 0, 64, 0, 51, 0, 95, 0, 68, 0, 79, 0, 70, 0, 95, 0, 65, 0, 82, 0,
323-
77, 0, 4, 0, 0, 0, 16, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 17, 0, 0, 0, })]
324-
public void TestLoadSWComponent(string modelName, byte[] pid)
320+
[InlineData(MODEL_NAME_3_DOF_ARM)]
321+
public void TestLoadSWComponent(string modelName)
325322
{
326323
ModelDoc2 doc = OpenSWDocument(modelName);
327324
AssemblyDoc assyDoc = (AssemblyDoc)doc;

SW2URDF/UI/MessageBoxHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ namespace SW2URDF.UI
55
{
66
public class MessageBoxHelper : IMessageBox
77
{
8-
MessageBoxResult IMessageBox.Show(string message)
8+
public MessageBoxResult Show(string message)
99
{
1010
return MessageBox.Show(message);
1111
}
1212

13-
MessageBoxResult IMessageBox.Show(string message, string caption, MessageBoxButton buttons)
13+
public MessageBoxResult Show(string message, string caption, MessageBoxButton buttons)
1414
{
1515
return MessageBox.Show(message, caption, buttons);
1616
}
761 Bytes
Binary file not shown.
1 KB
Binary file not shown.
2.38 KB
Binary file not shown.
176 Bytes
Binary file not shown.
4.72 KB
Binary file not shown.
1.64 KB
Binary file not shown.

0 commit comments

Comments
 (0)