// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information.
//
//
///
///
///
declare var strings;
module WinJSTests {
"use strict";
export class StringsValidation {
testStrings() {
Object.keys(strings).forEach(function (k) {
// Comments are generally _foo.comment strings, validate them differently than other strings.
if (k.indexOf('.comment') < 0) {
var s = WinJS.Resources.getString(k);
LiveUnit.Assert.areEqual(s.value, strings[k], k + " is not set correctly");
} else {
var original = k.replace('_', "").replace(".comment", "")
LiveUnit.Assert.isTrue(strings[original], "real string exists to match comment")
}
});
}
}
}
LiveUnit.registerTestClass("WinJSTests.StringsValidation");