Sha256: 086d5bbecfcf351b6275af74ac720d5e505b6f6be4eab835e7b141d7eda0eef0

Contents?: true

Size: 633 Bytes

Versions: 8

Compression:

Stored size: 633 Bytes

Contents

#include "stdafx.h"
#include "ElementStub.h"
#include <ElementStructures.h>

class ElementsTest : public ::testing::Test {
public:
  array<Element^>^ ElementsWithNames(...array<String^>^ names) {
    auto elements = gcnew array<Element^>(names->Length);
    auto index = 0;
    for each(auto name in names) {
      elements[index++] = gcnew ElementStub(name);
    }
    return elements;
  }
};

TEST_F(ElementsTest, ItCanBeInitialized)
{
  auto elements = Elements(ElementsWithNames("First", "Second"));
  ASSERT_STREQ("First", elements.elements[0].name);
  ASSERT_STREQ("Second", elements.elements[1].name);
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uia-0.0.7.3 ext/UiaDll/UiaDll.Test/ElementsTest.cpp
uia-0.0.7.2 ext/UiaDll/UiaDll.Test/ElementsTest.cpp
uia-0.0.7.1 ext/UiaDll/UiaDll.Test/ElementsTest.cpp
uia-0.0.7 ext/UiaDll/UiaDll.Test/ElementsTest.cpp
uia-0.0.6.1 ext/UiaDll/UiaDll.Test/ElementsTest.cpp
uia-0.0.6 ext/UiaDll/UiaDll.Test/ElementsTest.cpp
uia-0.0.5.1 ext/UiaDll/UiaDll.Test/ElementsTest.cpp
uia-0.0.5 ext/UiaDll/UiaDll.Test/ElementsTest.cpp