//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void numberIsValidValue() internal virtual void NumberIsValidValue() { INSTANCE.validate(5); INSTANCE.validate(5.0d); INSTANCE.validate(5.0f); INSTANCE.validate(5L); }
static public int get(string area) { if (!INSTANCE.ContainsKey(area)) { return(23); // TOKYO } return(INSTANCE[area]); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shortStringIsValidValue() internal virtual void ShortStringIsValidValue() { INSTANCE.validate(RandomStringUtils.randomAlphabetic(5)); INSTANCE.validate(RandomStringUtils.randomAlphabetic(10)); INSTANCE.validate(RandomStringUtils.randomAlphabetic(250)); INSTANCE.validate(RandomStringUtils.randomAlphabetic(450)); INSTANCE.validate(RandomStringUtils.randomAlphabetic(MAX_TERM_LENGTH)); }
static public int get(string area) { if (!INSTANCE.ContainsKey(area)) { return(0); // 全ての番組 } return(INSTANCE[area]); }
public static void ShutdownAll() { if (INSTANCE != null) { INSTANCE.SetInitStatus(false); Destroy(INSTANCE.gameObject); INSTANCE = null; } }
public static IAction Create(string name, Savegame.Savegame savegame) { IAction action = null; if (INSTANCE.IsKnown(name)) { action = INSTANCE[name, savegame]; } return(action); }
public static void Init(string basepath, GraphicsDevice device) { if (INSTANCE != null) { if (!INSTANCE.Inited) { INSTANCE.Init(); } return; } INSTANCE = new Content(basepath, ContentMode.CLIENT, device, true); }
ConversionResult?Visit(NODE node) { INSTANCE instance = node as INSTANCE; if (instance != null) { return(VisitInstance(instance)); } BINARY binary = node as BINARY; if (binary != null) { ConversionResult?leftResult = Visit(binary.left_operand); ConversionResult?rightResult = Visit(binary.right_operand); if (leftResult != null && rightResult != null) { ConversionResult left = leftResult.Value; ConversionResult right = rightResult.Value; if (TYPE.sameType(left.ElementType, right.ElementType)) { PLUS plus = node as PLUS; if (plus != null) { return(VisitElementWiseBinary(plus, "+", left, right)); } MINUS minus = node as MINUS; if (minus != null) { return(VisitElementWiseBinary(minus, "-", left, right)); } MULTIPLY_ELEMENTWISE multiplyElementwise = node as MULTIPLY_ELEMENTWISE; if (multiplyElementwise != null) { return(VisitElementWiseBinary(multiplyElementwise, "*", left, right)); } DIVIDE_ELEMENTWISE divideElementwise = node as DIVIDE_ELEMENTWISE; if (divideElementwise != null) { return(VisitElementWiseBinary(divideElementwise, "/", left, right)); } MULTIPLY multiply = node as MULTIPLY; if (multiply != null) { return(VisitMultiplication(multiply, left, right)); } } } } return(null); }
ConversionResult?VisitInstance(INSTANCE instance) { ARRAY_TYPE arrayType = instance.type as ARRAY_TYPE; if (arrayType == null || !arrayType.isMath) { return(null); } Int32 index = RegisterArgument(instance); String access = String.Format("Access(argument{0})", index); String complete = index.ToString(); HashSet <Int32> arguments = new HashSet <Int32>(); arguments.Add(index); return(new ConversionResult(null, access, complete, arrayType.dimensions.Length, arrayType.base_type, null, arguments)); }
Int32 RegisterArgument(INSTANCE instance) { Int32 value; String name = instance.name.ToString(); if (!_arguments.TryGetValue(name, out value)) { value = _arguments.Count; _arguments.Add(name, value); _generatedClass.Members.Add( new Field { Name = Identifier.For("_size" + value.ToString()), Type = SystemTypes.Int64.GetArrayType((instance.type as ARRAY_TYPE).dimensions.Length) } ); } return(value); }
public bool verificarListagemResumo(string resumo) { wait.ElementExists(By.Id("buglist")); var tabela = INSTANCE.FindElement(By.Id("buglist")); wait.ElementExists(By.TagName("tbody")); var subtabela = tabela.FindElement(By.TagName("tbody")); wait.ElementExists(By.TagName("tr")); foreach (var tr in subtabela.FindElements(By.TagName("tr"))) { var tds = tr.FindElements(By.TagName("td")); if (tds[10].Text.Equals(resumo)) { return(true); } }//fim foreach return(false); }
public bool verificarListagemUsuario(string usuario) { wait.ElementExists(By.TagName("table")); var tabela = INSTANCE.FindElement(By.TagName("table")); wait.ElementExists(By.TagName("tbody")); var subtabela = tabela.FindElement(By.TagName("tbody")); wait.ElementExists(By.TagName("tr")); foreach (var tr in subtabela.FindElements(By.TagName("tr"))) { var tds = tr.FindElements(By.TagName("td")); if (tds[0].Text.Equals(usuario)) { return(true); } }//fim foreach return(false); }
public void selecionarTarefaCriada(string resumo) { wait.ElementExists(By.Id("buglist")); var tabela = INSTANCE.FindElement(By.Id("buglist")); wait.ElementExists(By.TagName("tbody")); var subtabela = tabela.FindElement(By.TagName("tbody")); wait.ElementExists(By.TagName("tr")); foreach (var tr in subtabela.FindElements(By.TagName("tr"))) { var tds = tr.FindElements(By.TagName("td")); if (tds[10].Text.Equals(resumo)) { uteis.clicaBotao(tds[0]); } break; } //fim foreach } //fim void
public bool verificarListagemTarefaAtribuicao(string colunaResumo, string colunaUsuario) { wait.ElementExists(By.Id("buglist")); var tabela = INSTANCE.FindElement(By.Id("buglist")); wait.ElementExists(By.TagName("tbody")); var subtabela = tabela.FindElement(By.TagName("tbody")); wait.ElementExists(By.TagName("tr")); foreach (var tr in subtabela.FindElements(By.TagName("tr"))) { var tds = tr.FindElements(By.TagName("td")); if (tds[10].Text.Equals(colunaResumo) && (tds[8].Text.Contains(colunaUsuario))) { return(true); } }//fim foreach return(false); }
public bool acessarTarefaListagem(string colunaResumo) { wait.ElementExists(By.Id("buglist")); var tabela = INSTANCE.FindElement(By.Id("buglist")); wait.ElementExists(By.TagName("tbody")); var subtabela = tabela.FindElement(By.TagName("tbody")); wait.ElementExists(By.TagName("tr")); foreach (var tr in subtabela.FindElements(By.TagName("tr"))) { var tds = tr.FindElements(By.TagName("td")); if (tds[10].Text.Equals(colunaResumo)) { tds[3].Click(); return(true); } }//fim foreach return(false); }
public void InitializeDriver() { Initialize(); INSTANCE.Navigate().GoToUrl(ConfigurationSettings.AppSettings["base_url"]); }
public void updateFileList() { INSTANCE.updateListBox(); }
public static Rect Window(int id, Rect screenRect, UnityEngine.GUI.WindowFunction func, GUIContent content, GUIStyle style, params GUILayoutOption[] options) { return INSTANCE.Window(id, screenRect, func, content, style, options); }
protected virtual void Visit_INSTANCE(INSTANCE node) { }
public static async Task <ResultWithError <RoomPrepareInfo> > M2R_PrepareRoom(int serverId, int roomId, List <MatchUser> users, bool isManual = false) { return(await RpcProxy.RunAsync(typeof(RoomService), serverId, RpcProxy.BuildArgs(serverId, roomId, users, isManual), async() => await INSTANCE.PostAsync(() => INSTANCE.PrepareRoom(roomId, users, isManual)) )); }
public static Rect Window(int id, Rect screenRect, UnityEngine.GUI.WindowFunction func, Texture image, params GUILayoutOption[] options) { return INSTANCE.Window(id, screenRect, func, image, options); }
public void selecionarProjetoCriado(string projeto) { uteis.clicaBotao(INSTANCE.FindElement(By.XPath("(//a[contains(text(),'" + projeto + "')])[2]"))); }
public void acessarProjeto(string projeto) { ProjetoCabecalho.Click(); INSTANCE.FindElement(By.LinkText(projeto)).Click(); }
protected override void Visit_INSTANCE(INSTANCE node) { /* MOVE CODE HERE */ }
public static void Capture(string pathname) { INSTANCE.Capture(pathname); }
public void selecionarMarcadorCriado(string NomeMarcador) { uteis.clicaBotao(INSTANCE.FindElement(By.LinkText(NomeMarcador))); wait.ElementToBeClickable(TituloDetalhesMarcador); Assert.IsTrue(TituloDetalhesMarcador.Text.Contains(NomeMarcador)); }
public void acessarMinhaConta() { INSTANCE.Navigate().GoToUrl(ConfigurationManager.AppSettings["urlBase"].ToString() + "/account_page.php"); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void nullToStringIsNotAllowed() internal virtual void NullToStringIsNotAllowed() { object testValue = mock(typeof(object)); when(testValue.ToString()).thenReturn(null); System.ArgumentException iae = assertThrows(typeof(System.ArgumentException), () => INSTANCE.validate(testValue)); assertThat(iae.Message, containsString("has null toString")); }
public void selecionarUsuarioCriado(string NomeUsuario) { uteis.clicaBotao(INSTANCE.FindElement(By.LinkText(NomeUsuario))); wait.ElementToBeClickable(TituloAlterarUsuario); Relatorio.test.Pass("O usuário '" + NomeUsuario + "' foi selecionado."); }
public static void Capture(string pathname, int superSampleValue) { INSTANCE.Capture(pathname, superSampleValue); }