Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Shaw work #69

Merged
merged 3 commits into from
Jul 26, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Stub out another Atk test
  • Loading branch information
decriptor committed Jul 26, 2018
commit f566d899526f5876eaae138e55151fdf93af61db
20 changes: 20 additions & 0 deletions src/Gir.Tests/Gtk2/Atk/AtkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,26 @@ public static void NativeCallback (Object obj)
}
}
}
", result);
}

[Test]
public void GenerateAttribute ()
{
var result = GenerateType (Gtk2Atk1, "Attribute", true);

Assert.AreEqual (@"using System;
using System.Runtime.InteropServices;

namespace Atk
{
[StructLayout (LayoutKind.Sequential)]
public struct Attribute
{
string Name;
string Value;
}
}
", result);
}
}
Expand Down